info.go 416 B

123456789101112131415161718192021222324
  1. package http
  2. import (
  3. "go-common/app/service/main/vipinfo/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. func info(c *bm.Context) {
  7. var err error
  8. arg := new(model.ArgMid)
  9. if err = c.Bind(arg); err != nil {
  10. return
  11. }
  12. c.JSON(srv.Info(c, arg.Mid))
  13. }
  14. func infos(c *bm.Context) {
  15. var err error
  16. arg := new(model.ArgMids)
  17. if err = c.Bind(arg); err != nil {
  18. return
  19. }
  20. c.JSON(srv.Infos(c, arg.Mids))
  21. }