user_merchant_order.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. package apis
  2. type TGdDataApiCombo struct {
  3. Id int64
  4. QueryTypeId int64
  5. Count int
  6. Price float64
  7. Type int
  8. TotalDay int
  9. CreateTime string
  10. IsFree bool
  11. UpdateTime string
  12. }
  13. type TGdDataApiOrder struct {
  14. Id int64 `json:"-"`
  15. OrderNo string `json:"order_no"`
  16. MerchantId int64 `json:"merchant_id"`
  17. ComboId int64 `json:"combo_id"`
  18. ComboDesc string `json:"combo_desc"`
  19. QueryTypeId int64 `json:"query_type_id"`
  20. GoodsPrice float64 `json:"goods_price"`
  21. Status int `json:"status"`
  22. Count int `json:"count"`
  23. BuyAccount string `json:"buy_account"`
  24. PayType int `json:"pay_type"`
  25. CreateTime string `json:"-"`
  26. }
  27. type TGdChildDataApi struct {
  28. Id int64
  29. ApiId int64
  30. QueryTypeId int64
  31. ProviderApis string
  32. RequestParam string
  33. ResponseParam string
  34. CountType byte
  35. CountCode string
  36. ForceUpdate bool
  37. IsCrypto bool
  38. CreateTime string
  39. UpdateTime string
  40. }
  41. type ManagementAddOrderReq struct {
  42. MerchantId int64 `json:"merchant_id" description:""`
  43. QueryTypeId int64 `json:"query_type_id"`
  44. ComboId int64 `json:"combo_id" description:""`
  45. }
  46. type ManagementAddOrderReply struct {
  47. OrderId int64 `json:"order_id" description:""`
  48. }
  49. type ManagementPayOrderReq struct {
  50. OrderId int64 `json:"order_id" description:""`
  51. }
  52. type ManagementPayOrderReply struct {
  53. }
  54. type ManagementGetMerchantOrderListReq struct {
  55. MerchantId int64 `json:"merchant_id" description:""`
  56. PageNumber int `json:"page_number" description:""`
  57. PageSize int `json:"page_size"`
  58. DataApiName string `json:"data_api_name" description:""`
  59. StatusCode int `json:"status_code" description:"订单状态"`
  60. StartTime string `json:"start_time" description:"下单开始时间"`
  61. EndTime string `json:"end_time" description:"下单结束时间"`
  62. }
  63. type MerchantOrderItem struct {
  64. OrderNo string `json:"order_no" description:""`
  65. OrderId int64 `json:"order_id" description:""`
  66. DataApiName string `json:"data_api_name" description:""`
  67. Alias string `json:"alias"`
  68. QueryType string `json:"query_type" description:""`
  69. ComboDesc string `json:"combo_desc" description:"套餐描述"` // comboType 改为combodesc
  70. Price float64 `json:"price" description:"订单价格"`
  71. Status string `json:"status" description:"订单状态"`
  72. AddOrderTime string `json:"add_order_time" description:"下单时间"`
  73. StatusCode int `json:"status_code"`
  74. Count int `json:"count" description:"订单购买数量"`
  75. ComboType int `json:"combo_type" description:"套餐类型0免费,1按次 2按天"` // type 改为combotype
  76. BuyAccount string `json:"buy_account"`
  77. PayType int `json:"pay_type"`
  78. MerchantName string `json:"merchant_name"`
  79. ExpireMinute int64 `json:"expire_minute"`
  80. }
  81. type ManagementGetMerchantOrderListReply struct {
  82. Total int `json:"total" description:""`
  83. PageSize int `json:"page_size" description:""`
  84. PageNumber int `json:"page_number" description:""`
  85. MerchantOrderItemList []MerchantOrderItem `json:"merchant_order_item_list"`
  86. }
  87. type ManagementSetMerchantOrderPriceReq struct {
  88. OrderId int64 `json:"order_id" description:""`
  89. Price float64 `json:"price" description:""`
  90. }
  91. type ManagementSetMerchantOrderPriceReply struct {
  92. }
  93. type MangementGetApiOrderInfoReq struct {
  94. OrderId int64 `json:"order_id" description:""`
  95. }
  96. type MangementGetApiOrderInfoReply struct {
  97. OrderInfo TGdDataApiOrder `json:"info"`
  98. }