master
Evan Chen 2021-12-27 22:52:10 +08:00
parent fad111af71
commit bf299a6385
1 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,16 @@ import (
)
func ApiGrps(c *gin.Context) {
gid := c.Query("id")
if gid != "" {
grp := &Group{}
if err := DB.First(grp, "id = ?", gid).Error; err != nil {
panic(err)
}
server.OK(c, grp)
return
}
grps := []Group{}
var result *gorm.DB
if ACHas(c, SYSTEM) {