mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-13 00:05:38 +08:00
refactor: 后端路由定义方式&请求参数绑定重构
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user