mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-03 21:26:35 +08:00
refactor: code review
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
msgapp "mayfly-go/internal/msg/application"
|
||||
"mayfly-go/internal/sys/api"
|
||||
"mayfly-go/internal/sys/application"
|
||||
"mayfly-go/pkg/req"
|
||||
@@ -14,7 +15,7 @@ func InitAccountRouter(router *gin.RouterGroup) {
|
||||
AccountApp: application.GetAccountApp(),
|
||||
ResourceApp: application.GetResourceApp(),
|
||||
RoleApp: application.GetRoleApp(),
|
||||
MsgApp: application.GetMsgApp(),
|
||||
MsgApp: msgapp.GetMsgApp(),
|
||||
ConfigApp: application.GetConfigApp(),
|
||||
}
|
||||
{
|
||||
@@ -56,10 +57,6 @@ func InitAccountRouter(router *gin.RouterGroup) {
|
||||
req.NewCtxWithGin(c).Handle(a.UpdateAccount)
|
||||
})
|
||||
|
||||
account.GET("/msgs", func(c *gin.Context) {
|
||||
req.NewCtxWithGin(c).Handle(a.GetMsgs)
|
||||
})
|
||||
|
||||
/** 后台管理接口 **/
|
||||
|
||||
// 获取所有用户列表
|
||||
|
||||
Reference in New Issue
Block a user