clientmoni.go 572 B

123456789101112131415161718192021222324252627
  1. package http
  2. import (
  3. "go-common/app/admin/ep/melloi/model"
  4. "go-common/library/log"
  5. bm "go-common/library/net/http/blademaster"
  6. "go-common/library/net/http/blademaster/binding"
  7. )
  8. func queryClientMoni(c *bm.Context) {
  9. var (
  10. cli model.ClientMoni
  11. resMap = make(map[string]interface{})
  12. )
  13. if err := c.BindWith(&cli, binding.Form); err != nil {
  14. c.JSON(nil, err)
  15. return
  16. }
  17. clientMonis, err := srv.QueryClientMoni(&cli)
  18. if err != nil {
  19. log.Error("srv.QueryClientMoni err (%v)", err)
  20. return
  21. }
  22. resMap["clientMonis"] = clientMonis
  23. c.JSON(resMap, err)
  24. }