bilibili-backup/app/service/main/workflow/http/group.go

25 lines
509 B
Go
Raw Normal View History

2019-04-22 10:59:20 +08:00
package http
import (
"go-common/app/service/main/workflow/model"
bm "go-common/library/net/http/blademaster"
)
// deleteGroup delete group .
func deleteGroup(c *bm.Context) {
p := &model.DeleteGroupParams{}
if err := c.Bind(p); err != nil {
return
}
c.JSON(nil, wkfSvc.DeleteGroup(c, p))
}
// pubRefereeGroup delete group .
func pubRefereeGroup(c *bm.Context) {
p := &model.PublicRefereeGroupParams{}
if err := c.Bind(p); err != nil {
return
}
c.JSON(nil, wkfSvc.PublicRefereeGroup(c, p))
}