3 Star 14 Fork 7

don / ginfast

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.tpl 366 Bytes
一键复制 编辑 原始数据 按行查看 历史
don 提交于 2023-07-03 09:42 . fix: 注册model
package {{.App}}
import (
"ginfast/api/{{.App}}/controller"
"ginfast/api/{{.App}}/model"
"ginfast/pkg/orm"
"ginfast/pkg/router"
"github.com/gin-gonic/gin"
)
// init 初始化
func init() {
orm.RegisterModel(
&model.{{.Model}}{},
)
router.RegisterJWT("/{{.App}}", func(r *gin.RouterGroup) {
controller.{{.Model}}{}.Routers(r.Group("/{{.Name}}"))
})
}
Go
1
https://gitee.com/dontls/ginfast.git
git@gitee.com:dontls/ginfast.git
dontls
ginfast
ginfast
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891