后台授权模块调整
This commit is contained in:
@@ -23,7 +23,7 @@ func (s *LdapGroupModel) FindAll(ctx context.Context, gorm *gorm.DB) (resp []Lda
|
||||
|
||||
// FindPage 分页查询
|
||||
func (s *LdapGroupModel) FindPage(ctx context.Context, req FindPageReq) (resp []LdapGroup, total int64, err error) {
|
||||
db := s.db.WithContext(ctx).Model(&LdapGroup{})
|
||||
db := s.db.WithContext(ctx).Model(&LdapGroup{}).Where("type != ?", "people")
|
||||
if req.Fields != "" {
|
||||
db = db.Select(req.Fields)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user