refactor: 后端路由定义方式&请求参数绑定重构

This commit is contained in:
meilin.huang
2023-07-08 20:05:55 +08:00
parent 183a6e4905
commit 3269dfa5d6
59 changed files with 559 additions and 1020 deletions

View File

@@ -12,10 +12,7 @@ func InitSyslogRouter(router *gin.RouterGroup) {
s := &api.Syslog{
SyslogApp: application.GetSyslogApp(),
}
sys := router.Group("syslogs")
{
sys.GET("", func(c *gin.Context) {
req.NewCtxWithGin(c).Handle(s.Syslogs)
})
}
sysG := router.Group("syslogs")
req.NewGet("", s.Syslogs).Group(sysG)
}