Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
34155f5d84
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      src/implement/medium_implement.go

+ 9
- 0
src/implement/medium_implement.go View File

@@ -133,3 +133,12 @@ func (m MediumDb) GetSuperAdmin(mediumId int) (list *model.Medium) {
} }
return list return list
} }
func (m MediumDb) FindAllSuperAdmin() (list *[]model.Medium) {
list = &[]model.Medium{}
sess := m.Db.Where("is_super_administrator=1")
err := sess.Find(list)
if err != nil {
return nil
}
return list
}

Loading…
Cancel
Save