package frame import ( "github.com/gin-gonic/gin" ) type IMidHandler func(*Context) func MidFactory(h IMidHandler) gin.HandlerFunc { return func(c *gin.Context) { webContext := &Context{Context: c} h(webContext) } }