trade.go 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. package ferroalloy
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryTHJPurchaseTradeDetail
  8. // @Summary 查询我的订单-采购订单
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Param userid query int true "用户ID"
  12. // @Param type query int false "类型 - 0:未完成 1:已完成"
  13. // @Param page query int false "页码"
  14. // @Param pagesize query int false "每页条数"
  15. // @Success 200 {array} models.Thjpurchasetradedetail
  16. // @Failure 500 {object} app.Response
  17. // @Router /Ferroalloy/QueryTHJPurchaseTradeDetail [get]
  18. // @Tags 铁合金
  19. func QueryTHJPurchaseTradeDetail(c *gin.Context) {
  20. a := app.GinUtils{Gin: app.Gin{C: c}}
  21. m := models.Thjpurchasetradedetail{}
  22. a.DoBindReq(&m)
  23. a.DoGetDataByPage(&m)
  24. }
  25. // QueryTHJTradeData
  26. // @Summary 获取我的推广-交易数据
  27. // @Produce json
  28. // @Security ApiKeyAuth
  29. // @Param userid query int true "用户ID"
  30. // @Param marketid query int true "市场ID 采购-64201 供求-65201"
  31. // @Param page query int false "页码"
  32. // @Param pagesize query int false "每页条数"
  33. // @Success 200 {array} models.THJTradeData
  34. // @Failure 500 {object} app.Response
  35. // @Router /Ferroalloy/QueryTHJTradeData [get]
  36. // @Tags 铁合金
  37. func QueryTHJTradeData(c *gin.Context) {
  38. a := app.GinUtils{Gin: app.Gin{C: c}}
  39. m := models.THJTradeData{}
  40. a.DoBindReq(&m)
  41. a.DoGetDataByPage(&m)
  42. }
  43. // QueryTHJPurchaseTransferOrder
  44. // @Summary 查询我的订单-转让/受让订单
  45. // @Produce json
  46. // @Security ApiKeyAuth
  47. // @Param userid query int true "用户ID"
  48. // @Param ordertype query int true "类型 - 1:转让 2:受让 3:转让委托已完成"
  49. // @Param page query int false "页码"
  50. // @Param pagesize query int false "每页条数"
  51. // @Success 200 {array} models.Thjpurchasetransfer
  52. // @Failure 500 {object} app.Response
  53. // @Router /Ferroalloy/QueryTHJPurchaseTransferOrder [get]
  54. // @Tags 铁合金
  55. func QueryTHJPurchaseTransferOrder(c *gin.Context) {
  56. a := app.GinUtils{Gin: app.Gin{C: c}}
  57. m := models.Thjpurchasetransfer{}
  58. a.DoBindReq(&m)
  59. a.DoGetDataByPage(&m)
  60. }
  61. // QueryTHJPurchaseTransferOrderDetail
  62. // @Summary 查询我的订单-转让/受让订单-详情
  63. // @Produce json
  64. // @Security ApiKeyAuth
  65. // @Param transferid query string true "转让单号"
  66. // @Success 200 {array} models.ThjpurchasetransferDetail
  67. // @Failure 500 {object} app.Response
  68. // @Router /Ferroalloy/QueryTHJPurchaseTransferOrderDetail [get]
  69. // @Tags 铁合金
  70. func QueryTHJPurchaseTransferOrderDetail(c *gin.Context) {
  71. a := app.GinUtils{Gin: app.Gin{C: c}}
  72. m := models.ThjpurchasetransferDetail{}
  73. a.DoBindReq(&m)
  74. a.DoGetDataEx(&m)
  75. }
  76. // QueryTHJPromotionIncome
  77. // @Summary 查询我的推广-推广收益
  78. // @Produce json
  79. // @Security ApiKeyAuth
  80. // @Param userid query int true "用户ID"
  81. // @Param profitstatus query int false "状态 - 0:全部 1:已支付 2:未支付"
  82. // @Param page query int false "页码"
  83. // @Param pagesize query int false "每页条数"
  84. // @Success 200 {array} models.PromotionIncome
  85. // @Failure 500 {object} app.Response
  86. // @Router /Ferroalloy/QueryTHJPromotionIncome [get]
  87. // @Tags 铁合金
  88. func QueryTHJPromotionIncome(c *gin.Context) {
  89. a := app.GinUtils{Gin: app.Gin{C: c}}
  90. m := models.PromotionIncome{}
  91. a.DoBindReq(&m)
  92. a.DoGetDataByPage(&m)
  93. }
  94. // QueryTHJPromotionIncomeDetail
  95. // @Summary 查询我的推广-推广收益-明细
  96. // @Produce json
  97. // @Security ApiKeyAuth
  98. // @Param userid query int true "用户ID"
  99. // @Param mouth query string true "月份,格式:yyyymm"
  100. // @Param page query int false "页码"
  101. // @Param pagesize query int false "每页条数"
  102. // @Success 200 {array} models.PromotionIncomeDetail
  103. // @Failure 500 {object} app.Response
  104. // @Router /Ferroalloy/QueryTHJPromotionIncomeDetail [get]
  105. // @Tags 铁合金
  106. func QueryTHJPromotionIncomeDetail(c *gin.Context) {
  107. a := app.GinUtils{Gin: app.Gin{C: c}}
  108. m := models.PromotionIncomeDetail{}
  109. a.DoBindReq(&m)
  110. a.DoGetDataByPage(&m)
  111. }
  112. // QueryTHJinvesotrdeposit
  113. // @Summary 定金比例个性化查询
  114. // @Produce json
  115. // @Security ApiKeyAuth
  116. // @Param userid query int true "用户ID"
  117. // @Param wrstandardid query int true "现货商品ID"
  118. // @Param page query int false "页码"
  119. // @Param pagesize query int false "每页条数"
  120. // @Success 200 {array} models.GThjinvesotrdeposit
  121. // @Failure 500 {object} app.Response
  122. // @Router /Ferroalloy/QueryTHJinvesotrdeposit [get]
  123. // @Tags 铁合金
  124. func QueryTHJinvesotrdeposit(c *gin.Context) {
  125. a := app.GinUtils{Gin: app.Gin{C: c}}
  126. m := models.GThjinvesotrdeposit{}
  127. a.DoBindReq(&m)
  128. a.DoGetDataByPage(&m)
  129. }
  130. // QueryTHJInvesotrDepositLog
  131. // @Summary 定金比例个性化查询
  132. // @Produce json
  133. // @Security ApiKeyAuth
  134. // @Param userid query int true "用户ID"
  135. // @Param page query int false "页码"
  136. // @Param pagesize query int false "每页条数"
  137. // @Success 200 {array} models.GThjinvesotrdepositlog
  138. // @Failure 500 {object} app.Response
  139. // @Router /Ferroalloy/QueryTHJInvesotrDepositLog [get]
  140. // @Tags 铁合金
  141. func QueryTHJInvesotrDepositLog(c *gin.Context) {
  142. a := app.GinUtils{Gin: app.Gin{C: c}}
  143. m := models.GThjinvesotrdepositlog{}
  144. a.DoBindReq(&m)
  145. a.DoGetDataByPage(&m)
  146. }