pendant.go 401 B

123456789101112131415161718192021
  1. package http
  2. import (
  3. "go-common/app/interface/main/answer/model"
  4. "go-common/library/ecode"
  5. bm "go-common/library/net/http/blademaster"
  6. )
  7. func pendantRec(c *bm.Context) {
  8. arg := new(model.ReqPendant)
  9. mid, ok := c.Get("mid")
  10. if !ok {
  11. c.JSON(nil, ecode.AccountNotLogin)
  12. return
  13. }
  14. if err := c.Bind(arg); err != nil {
  15. return
  16. }
  17. arg.MID = mid.(int64)
  18. c.JSON(nil, svc.PendantRec(c, arg))
  19. }