tips.go 485 B

1234567891011121314151617181920212223242526
  1. package http
  2. import (
  3. "go-common/app/service/main/vip/model"
  4. "go-common/library/log"
  5. bm "go-common/library/net/http/blademaster"
  6. )
  7. // tips info.
  8. func tips(c *bm.Context) {
  9. var (
  10. res []*model.TipsResp
  11. err error
  12. arg = new(model.ArgTips)
  13. )
  14. if err = c.Bind(arg); err != nil {
  15. log.Error("c.Bind err(%+v)", err)
  16. return
  17. }
  18. if res, err = vipSvc.Tips(c, arg); err != nil {
  19. log.Error("vipSvc.Tips(%+v) err(%+v)", arg, err)
  20. c.JSON(nil, err)
  21. return
  22. }
  23. c.JSON(res, nil)
  24. }