perf: 通用模块分出认证模块

This commit is contained in:
TsMask committed 2025-03-19 11:32:57 +08:00
1 parent add8b9d581
commit 5040a5ae40
14 files changed
+120 -113

No files matched your search

@@ -10,7 +10,7 @@ import (
"be.ems/src/framework/resp"
"be.ems/src/framework/utils/date"
"be.ems/src/framework/utils/file"
commonService "be.ems/src/modules/common/service"
authService "be.ems/src/modules/auth/service"
"be.ems/src/modules/system/model"
"be.ems/src/modules/system/service"
@@ -20,15 +20,15 @@ import (
// 实例化控制层 SysLogLoginController 结构体
var NewSysLogLogin = &SysLogLoginController{
sysLogLoginService: service.NewSysLogLogin,
accountService: commonService.NewAccount,
accountService: authService.NewAccount,
}
// 系统登录日志信息
//
// PATH /system/log/login
type SysLogLoginController struct {
sysLogLoginService *service.SysLogLogin // 系统登录日志服务
accountService *commonService.Account // 账号身份操作服务
sysLogLoginService *service.SysLogLogin // 系统登录日志服务
accountService *authService.Account // 账号身份操作服务
}
// 系统登录日志列表