This website works better with JavaScript.
Home
Explore
Help
Sign In
zhimeng
/
model
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
更新
master
huangjiajun
1 month ago
parent
ce3223d3e7
commit
34155f5d84
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
}
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
}
Write
Preview
Loading…
Cancel
Save