group.go 509 B

123456789101112131415161718192021222324
  1. package http
  2. import (
  3. "go-common/app/service/main/workflow/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. // deleteGroup delete group .
  7. func deleteGroup(c *bm.Context) {
  8. p := &model.DeleteGroupParams{}
  9. if err := c.Bind(p); err != nil {
  10. return
  11. }
  12. c.JSON(nil, wkfSvc.DeleteGroup(c, p))
  13. }
  14. // pubRefereeGroup delete group .
  15. func pubRefereeGroup(c *bm.Context) {
  16. p := &model.PublicRefereeGroupParams{}
  17. if err := c.Bind(p); err != nil {
  18. return
  19. }
  20. c.JSON(nil, wkfSvc.PublicRefereeGroup(c, p))
  21. }