wrposition.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. package guangzuan
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryMyWRPosition
  8. // @Summary 查询我的库存
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Security LoginID
  12. // @Security Group
  13. // @Param page query int false "页码"
  14. // @Param pagesize query int false "每页条数"
  15. // @Param wruserid query int true "登录用户ID"
  16. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  17. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  18. // @Param warehouseid query int false "仓库ID"
  19. // @Param marketflag query int false "是否上架,0-全部 1-是 2-否"
  20. // @Success 200 {array} models.MyWRPosition
  21. // @Failure 500 {object} app.Response
  22. // @Router /Guangzuan/QueryMyWRPosition [get]
  23. // @Tags 广钻
  24. func QueryMyWRPosition(c *gin.Context) {
  25. a := app.GinUtils{Gin: app.Gin{C: c}}
  26. m := models.MyWRPosition{}
  27. a.DoBindReq(&m)
  28. a.DoGetDataByPage(&m)
  29. }
  30. // QueryMyBuyOrder
  31. // @Summary 查询我的求购
  32. // @Produce json
  33. // @Security ApiKeyAuth
  34. // @Security LoginID
  35. // @Security Group
  36. // @Param userid query int true "用户ID"
  37. // @Param page query int false "页码"
  38. // @Param pagesize query int false "每页条数"
  39. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  40. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  41. // @Param wrtradeorderid query int false "委托单号"
  42. // @Param ishis query bool false "是否历史查询"
  43. // @Param begindate query string false "开始交易日(yyyymmdd)"
  44. // @Param enddate query string false "结束交易日(yyyymmdd)"
  45. // @Success 200 {array} models.MyBuyOrder
  46. // @Failure 500 {object} app.Response
  47. // @Router /Guangzuan/QueryMyBuyOrder [get]
  48. // @Tags 广钻
  49. func QueryMyBuyOrder(c *gin.Context) {
  50. a := app.GinUtils{Gin: app.Gin{C: c}}
  51. m := models.MyBuyOrder{}
  52. a.DoBindReq(&m)
  53. a.DoGetDataByPage(&m)
  54. }
  55. // QueryMySellOrder
  56. // @Summary 查询我的出售
  57. // @Produce json
  58. // @Security ApiKeyAuth
  59. // @Security LoginID
  60. // @Security Group
  61. // @Param userid query int true "用户ID"
  62. // @Param page query int false "页码"
  63. // @Param pagesize query int false "每页条数"
  64. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  65. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  66. // @Param wrtradeorderid query int false "委托单号"
  67. // @Param ishis query bool false "是否历史查询"
  68. // @Param begindate query string false "开始交易日(yyyymmdd)"
  69. // @Param enddate query string false "结束交易日(yyyymmdd)"
  70. // @Success 200 {array} models.MySellOrder
  71. // @Failure 500 {object} app.Response
  72. // @Router /Guangzuan/QueryMySellOrder [get]
  73. // @Tags 广钻
  74. func QueryMySellOrder(c *gin.Context) {
  75. a := app.GinUtils{Gin: app.Gin{C: c}}
  76. m := models.MySellOrder{}
  77. a.DoBindReq(&m)
  78. a.DoGetDataByPage(&m)
  79. }
  80. // QueryMyDeListing
  81. // @Summary 查询我的摘牌
  82. // @Produce json
  83. // @Security ApiKeyAuth
  84. // @Security LoginID
  85. // @Security Group
  86. // @Param userid query int true "用户ID"
  87. // @Param page query int false "页码"
  88. // @Param pagesize query int false "每页条数"
  89. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  90. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  91. // @Param wrtradedetailid query int false "成交单号"
  92. // @Param buyorsell query int false "方向,0-购买 1-出售"
  93. // @Param matchusername query string false "对手方(模糊匹配)"
  94. // @Param begindate query string false "开始交易日(yyyymmdd)"
  95. // @Param enddate query string false "结束交易日(yyyymmdd)"
  96. // @Success 200 {array} models.MyDeListing
  97. // @Failure 500 {object} app.Response
  98. // @Router /Guangzuan/QueryMyDeListing [get]
  99. // @Tags 广钻
  100. func QueryMyDeListing(c *gin.Context) {
  101. a := app.GinUtils{Gin: app.Gin{C: c}}
  102. m := models.MyDeListing{}
  103. a.DoBindReq(&m)
  104. a.DoGetDataByPage(&m)
  105. }
  106. // QueryMyBargainApply
  107. // @Summary 查询询价-求购
  108. // @Produce json
  109. // @Security ApiKeyAuth
  110. // @Security LoginID
  111. // @Security Group
  112. // @Param userid query int true "用户ID"
  113. // @Param page query int false "页码"
  114. // @Param pagesize query int false "每页条数"
  115. // @Param applystatus query int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
  116. // @Param type query int false "查询类型 - 0:我的询价 1:我订单的询价"
  117. // @Param wrtradeorderid query string false "关联委托单ID"
  118. // @Success 200 {array} models.MyBargainApply
  119. // @Failure 500 {object} app.Response
  120. // @Router /Guangzuan/QueryMyBargainApply [get]
  121. // @Tags 广钻
  122. func QueryMyBargainApply(c *gin.Context) {
  123. a := app.GinUtils{Gin: app.Gin{C: c}}
  124. m := models.MyBargainApply{}
  125. a.DoBindReq(&m)
  126. a.DoGetDataByPage(&m)
  127. }
  128. // QueryMyDelistingApply
  129. // @Summary 查询询价-出售
  130. // @Produce json
  131. // @Security ApiKeyAuth
  132. // @Security LoginID
  133. // @Security Group
  134. // @Param userid query int true "用户ID"
  135. // @Param page query int false "页码"
  136. // @Param pagesize query int false "每页条数"
  137. // @Param applystatus query int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
  138. // @Param type query int false "查询类型 - 0:我的询价 1:我订单的询价"
  139. // @Param buywrtradeorderid query string false "买委托单ID"
  140. // @Success 200 {array} models.MyDelistingApply
  141. // @Failure 500 {object} app.Response
  142. // @Router /Guangzuan/QueryMyDelistingApply [get]
  143. // @Tags 广钻
  144. func QueryMyDelistingApply(c *gin.Context) {
  145. a := app.GinUtils{Gin: app.Gin{C: c}}
  146. m := models.MyDelistingApply{}
  147. a.DoBindReq(&m)
  148. a.DoGetDataByPage(&m)
  149. }
  150. // QueryMyPerformanc
  151. // @Summary 查询我的履约
  152. // @Produce json
  153. // @Security ApiKeyAuth
  154. // @Security LoginID
  155. // @Security Group
  156. // @Param userid query int true "用户ID"
  157. // @Param page query int false "页码"
  158. // @Param pagesize query int false "每页条数"
  159. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  160. // @Param buyorsell query int false "方向,0-买 1-卖"
  161. // @Param ishis query bool false "是否历史查询"
  162. // @Param begindate query string false "开始交易日(yyyymmdd)"
  163. // @Param enddate query string false "结束交易日(yyyymmdd)"
  164. // @Success 200 {array} models.MyPerformanc
  165. // @Failure 500 {object} app.Response
  166. // @Router /Guangzuan/QueryMyPerformanc [get]
  167. // @Tags 广钻
  168. func QueryMyPerformanc(c *gin.Context) {
  169. a := app.GinUtils{Gin: app.Gin{C: c}}
  170. m := models.MyPerformanc{}
  171. a.DoBindReq(&m)
  172. a.DoGetDataByPage(&m)
  173. }
  174. // QueryMyFavorite
  175. // @Summary 查询我的收藏
  176. // @Produce json
  177. // @Security ApiKeyAuth
  178. // @Security LoginID
  179. // @Security Group
  180. // @Param userid query int true "用户ID"
  181. // @Param page query int false "页码"
  182. // @Param pagesize query int false "每页条数"
  183. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  184. // @Success 200 {array} models.MyFavorite
  185. // @Failure 500 {object} app.Response
  186. // @Router /Guangzuan/QueryMyFavorite [get]
  187. // @Tags 广钻
  188. func QueryMyFavorite(c *gin.Context) {
  189. a := app.GinUtils{Gin: app.Gin{C: c}}
  190. m := models.MyFavorite{}
  191. a.DoBindReq(&m)
  192. a.DoGetDataByPage(&m)
  193. }