order.go 608 B

1234567891011121314151617181920212223
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func orderList(c *bm.Context) {
  6. args := new(struct {
  7. Mid int64 `form:"mid"`
  8. OrderNo string `form:"order_no"`
  9. Status int8 `form:"status"`
  10. PaymentStime int64 `form:"payment_stime"`
  11. PaymentEtime int64 `form:"payment_etime"`
  12. PageNum int64 `form:"pn" default:"1"`
  13. PageSize int64 `form:"ps" default:"20"`
  14. })
  15. if err := c.Bind(args); err != nil {
  16. return
  17. }
  18. c.JSON(tvSrv.OrderList(args.Mid, args.PageNum, args.PageSize, args.PaymentStime, args.PaymentEtime, args.Status, args.OrderNo))
  19. }