This commit is contained in:
2026-01-04 18:06:23 +08:00
parent 5f814c39b2
commit d2a3d60183
3 changed files with 160 additions and 1531 deletions

View File

@@ -23,6 +23,7 @@ func main() {
// 初始化Gin引擎
app := gin.Default()
tmpl.New(app)
// 创建并加载自定义渲染器
middleware.Mode(app)
@@ -36,8 +37,6 @@ func main() {
routers.RegistersPublic(app)
routers.RegistersAll(app)
tmpl.New(app)
// start
err := app.Run(fmt.Sprintf(":%s", config.Spec.Port))
if err != nil {