refactor: code review

This commit is contained in:
meilin.huang
2023-07-03 21:42:04 +08:00
parent c240079df4
commit ae5a1fd7de
46 changed files with 188 additions and 165 deletions

View File

@@ -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)
})
/** 后台管理接口 **/
// 获取所有用户列表