notice.go 456 B

12345678910111213141516171819202122232425
  1. package http
  2. import (
  3. opmdl "go-common/app/interface/main/web-show/model/operation"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. // notice
  7. func notice(c *bm.Context) {
  8. arg := new(opmdl.ArgOp)
  9. if err := c.Bind(arg); err != nil {
  10. return
  11. }
  12. notice := opSvc.Notice(c, arg)
  13. c.JSON(notice, nil)
  14. }
  15. // promote
  16. func promote(c *bm.Context) {
  17. arg := new(opmdl.ArgPromote)
  18. if err := c.Bind(arg); err != nil {
  19. return
  20. }
  21. c.JSON(opSvc.Promote(c, arg))
  22. }