order.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. package apis
  2. // 创建数据api订单
  3. type ManagementCreateDataApiOrderReq struct {
  4. MerchantId int64 `json:"merchant_id" description:"商户id"`
  5. QueryTypeId int64 `json:"query_type_id" description:"查询方式id"`
  6. ComboId int64 `json:"combo_id" description:"" description:"套餐id"`
  7. Count int `json:"count" description:"购买数量"`
  8. BuyAccount string `json:"buy_account" description:"购买账号"`
  9. }
  10. type ManagementCreateDataApiOrderReply struct {
  11. OrderNo string `json:"order_no" description:""`
  12. StatusCode int `json:"status_code"`
  13. }
  14. // 支付数据api订单
  15. type ManagementPayDataApiOrderReq struct {
  16. OrderNo string `json:"order_no" description:""`
  17. }
  18. type ManagementPayDataApiOrderReply struct {
  19. }
  20. // 取消数据api订单
  21. type ManagementCancelDataApiOrderReq struct {
  22. OrderNo string `json:"order_no" description:""`
  23. IsCancel bool `json:"is_cancel"`
  24. }
  25. type ManagementCancelDataApiOrderReply struct {
  26. }
  27. // 修改数据api订单价格
  28. type ManagementChangeDataApiOrderPriceReq struct {
  29. OrderNo string `json:"order_no" description:""`
  30. Price float64 `json:"price" description:""`
  31. }
  32. type ManagementChangeDataApiOrderPriceReply struct {
  33. }
  34. // 获取数据api订单信息
  35. type MangementDataApiOrderConfirmReq struct {
  36. OrderNo string `json:"order_no" description:""`
  37. }
  38. type MangementDataApiOrderConfirmReply struct {
  39. }
  40. // 获取数据api订单信息
  41. type MangementGetDataApiOrderInfoReq struct {
  42. OrderNo string `json:"order_no" description:""`
  43. }
  44. type MangementGetDataApiOrderInfoReply struct {
  45. OrderInfo TGdDataApiOrder `json:"info"`
  46. }
  47. type ManagementMerchantOrderDetailInfoReq struct {
  48. OrderNo string `json:"order_no" description:""`
  49. MerchantId int64 `json:"merchant_id" description:"商户id"`
  50. }
  51. type TGdBankInfo struct {
  52. Id int64 `json:"id" description:""`
  53. BankAccount string `json:"bank_account"`
  54. BankUser string `json:"bank_user"`
  55. OpenBank string `json:"open_bank"`
  56. Remark string `json:"remark"`
  57. }
  58. type ManagementMerchantOrderDetailInfoReply struct {
  59. OrderInfo MerchantOrderItem `json:"info"`
  60. BankInfo TGdBankInfo `json:"bank_info"`
  61. }
  62. // 获取数据api订单列表
  63. type ManagementGetDataApiOrderListReq struct {
  64. MerchantId int64 `json:"merchant_id" description:""`
  65. PageNumber int `json:"page_number" description:""`
  66. DataApiName string `json:"data_api_name" description""`
  67. StatusCode int `json:"status_code" description:"订单状态"`
  68. StartTime string `json:"start_time" description:"下单开始时间"`
  69. EndTime string `json:"end_time" description:"下单结束时间"`
  70. }
  71. type DataApiOrderItem struct {
  72. OrderNo string `json:"order_no" description:""`
  73. DataApiName string `json:"data_api_name" description""`
  74. QueryType string `json:"query_type" description:""`
  75. ComboType string `json:"combo_type" description:"套餐规格"`
  76. Price float64 `json:"price" description:"订单价格"`
  77. Status string `json:"status" description:"订单状态"`
  78. AddOrderTime string `json:"add_order_time" description:"下单时间"`
  79. Count int `json:"count"`
  80. Type int `json:"type" description:"套餐类型 0 免费 1 按量 2 按天"`
  81. }
  82. type ManagementGetDataApiOrderListReply struct {
  83. Total int `json:"total" description:""`
  84. PageSize int `json:"page_size" description:""`
  85. PageNumber int `json:"page_number" description:""`
  86. DataApiOrderItem []DataApiOrderItem `json:"data_api_order_item"`
  87. }
  88. // 创建h5订单
  89. type ManagementCreateH5OrderReq struct {
  90. MerchantId int64 `json:"merchant_id"`
  91. H5ServiceId int64 `json:"h5_service_id"`
  92. ComboId int64 `json:"h5_combo_id"`
  93. ThemeColor string `json:"theme_color"`
  94. }
  95. type ManagementCreateH5OrderReply struct {
  96. OrderNo string `json:"order_no" description:""`
  97. }
  98. // 支付h5订单
  99. type ManagementPayH5OrderReq struct {
  100. OrderNo string `json:"order_no" description:""`
  101. }
  102. type ManagementPayH5OrderReply struct {
  103. }
  104. // 取消h5订单
  105. type ManagementCancelH5OrderReq struct {
  106. OrderNo string `json:"order_no" description:""`
  107. }
  108. type ManagementCancelH5OrderReply struct {
  109. }
  110. // 修改h5订单价格
  111. type ManagementChangeH5OrderPriceReq struct {
  112. OrderNo string `json:"order_no" description:""`
  113. Price float64 `json:"price" description:""`
  114. }
  115. type ManagementChangeH5OrderPriceReply struct {
  116. }
  117. // 获取h5订单信息
  118. type MangementGetH5OrderInfoReq struct {
  119. OrderNo string `json:"order_no" description:""`
  120. }
  121. type MangementGetH5OrderInfoReply struct {
  122. OrderInfo TGdH5ServiceOrder `json:"info"`
  123. }
  124. // 获取h5订单列表
  125. type ManagementGetH5OrderListReq struct {
  126. MerchantId int64 `json:"merchant_id" description:""`
  127. PageNumber int `json:"page_number" description:""`
  128. }
  129. type H5OrderItem struct {
  130. MerchantH5ServiceId int64 `json:"merchant_h5_service_id"`
  131. H5ServiceId int64 `json:"h5_service_id"`
  132. ComboType int `json:"combo_type" description:"套餐类型1 按总次数,2 按天"`
  133. TotalCount int `json:"total_count" description:""`
  134. RemainCount int `json:"remain_count" description:""`
  135. DayCount int `json:"day_count" description:""`
  136. DayRemainCount int `json:"day_remain_count" description:""`
  137. DayNumberCount int `json:"day_number_count" description:"天数上限"`
  138. DayNumberRemain int `json:"day_number_remain" description:"有效天数"`
  139. Status string `json:"status" description:""`
  140. UseTime string `json:"use_time" description:""`
  141. H5ServiceName string `json:"h5_service_name"`
  142. State string `json:"state"`
  143. }
  144. type ManagementGetH5OrderListReply struct {
  145. Total int `json:"total" description:""`
  146. PageSize int `json:"page_size" description:""`
  147. PageNumber int `json:"page_number" description:""`
  148. H5OrderItem []H5OrderItem `json:"h5_order_item"`
  149. }