fix: 角色列表隐藏内置超管
This commit is contained in:
@@ -85,7 +85,7 @@ func (s *sAdminRole) Verify(ctx context.Context, path, method string) bool {
|
|||||||
// List 获取列表
|
// List 获取列表
|
||||||
func (s *sAdminRole) List(ctx context.Context, in *adminin.RoleListInp) (res *adminin.RoleListModel, totalCount int, err error) {
|
func (s *sAdminRole) List(ctx context.Context, in *adminin.RoleListInp) (res *adminin.RoleListModel, totalCount int, err error) {
|
||||||
var (
|
var (
|
||||||
mod = dao.AdminRole.Ctx(ctx)
|
mod = dao.AdminRole.Ctx(ctx).WhereNot(dao.AdminRole.Columns().Key, consts.SuperRoleKey)
|
||||||
models []*entity.AdminRole
|
models []*entity.AdminRole
|
||||||
pid int64 = 0
|
pid int64 = 0
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user