feat: add useradmin role -运营管理员权限,支持管理用户/订单/风控等

This commit is contained in:
root
2026-05-11 15:23:24 +00:00
parent 3d7e7b78cf
commit 18c3a8b3ad
6 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ type User struct {
}
func (u *User) IsAdmin() bool {
return u.Role == RoleAdmin
return u.Role == RoleAdmin || u.Role == RoleUserAdmin
}
func (u *User) IsActive() bool {