模块标准化
This commit is contained in:
@@ -2,7 +2,7 @@ package util
|
||||
|
||||
import (
|
||||
"cutego/modules/core/api/v1/response"
|
||||
"cutego/modules/core/entity"
|
||||
"cutego/modules/core/dataobject"
|
||||
"cutego/pkg/common"
|
||||
"cutego/pkg/config"
|
||||
"cutego/pkg/jwt"
|
||||
@@ -49,7 +49,7 @@ func CheckLockToken(c *gin.Context) bool {
|
||||
}
|
||||
|
||||
// CheckIsAdmin 判断是否是超级管理员
|
||||
func CheckIsAdmin(user *entity.SysUser) bool {
|
||||
func CheckIsAdmin(user *dataobject.SysUser) bool {
|
||||
if user.UserId == 1 {
|
||||
return true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user