bilibili-backup/app/service/main/workflow/http/group.go
2019-04-22 02:59:20 +00:00

25 lines
509 B
Go

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))
}