update
parent
fad111af71
commit
bf299a6385
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue