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

@@ -13,9 +13,6 @@ func InitMsgRouter(router *gin.RouterGroup) {
a := &api.Msg{
MsgApp: application.GetMsgApp(),
}
{
msg.GET("/self", func(c *gin.Context) {
req.NewCtxWithGin(c).Handle(a.GetMsgs)
})
}
req.NewGet("/self", a.GetMsgs).Group(msg)
}