feat: 添加检查是否为管理员的接口
This commit is contained in:
@@ -49,6 +49,7 @@ type (
|
||||
Delete(ctx context.Context, ids []int) (err error)
|
||||
GetUsers(ctx context.Context, ids []int) (users []*model.SysUserSimpleRes, err error)
|
||||
IsSuperAdmin(ctx context.Context, req *system.IsSuperAdminReq) (isSuperAdmin bool, err error)
|
||||
IsAdmin(ctx context.Context, req *system.IsAdminReq) (isSuperAdmin bool, err error)
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user