1 Star 0 Fork 0

庞飞 / multiapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
handler.go 374 Bytes
一键复制 编辑 原始数据 按行查看 历史
庞飞 提交于 2023-10-03 10:28 . 合并主框架
package request
import (
"github.com/gin-gonic/gin"
"gitee.com/pangxianfei/multiapp/request/http"
)
func ConvertHandlers(handlers []HandlerFunc) (ginHandlers []gin.HandlerFunc) {
for _, h := range handlers {
handler := h
ginHandlers = append(ginHandlers, func(c *gin.Context) {
tmaicContext := http.ConvertContext(c)
handler(tmaicContext)
})
}
return
}
Go
1
https://gitee.com/pangxianfei/multiapp.git
git@gitee.com:pangxianfei/multiapp.git
pangxianfei
multiapp
multiapp
v1.2.3

搜索帮助