wrposition.go 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. // @Success 200 {array} models.MyBuyOrder
  44. // @Failure 500 {object} app.Response
  45. // @Router /Guangzuan/QueryMyBuyOrder [get]
  46. // @Tags 广钻
  47. func QueryMyBuyOrder(c *gin.Context) {
  48. a := app.GinUtils{Gin: app.Gin{C: c}}
  49. m := models.MyBuyOrder{}
  50. a.DoBindReq(&m)
  51. a.DoGetDataByPage(&m)
  52. }
  53. // QueryMySellOrder
  54. // @Summary 查询我的出售
  55. // @Produce json
  56. // @Security ApiKeyAuth
  57. // @Security LoginID
  58. // @Security Group
  59. // @Param userid query int true "用户ID"
  60. // @Param page query int false "页码"
  61. // @Param pagesize query int false "每页条数"
  62. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  63. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  64. // @Param wrtradeorderid query int false "委托单号"
  65. // @Param ishis query bool false "是否历史查询"
  66. // @Success 200 {array} models.MySellOrder
  67. // @Failure 500 {object} app.Response
  68. // @Router /Guangzuan/QueryMySellOrder [get]
  69. // @Tags 广钻
  70. func QueryMySellOrder(c *gin.Context) {
  71. a := app.GinUtils{Gin: app.Gin{C: c}}
  72. m := models.MySellOrder{}
  73. a.DoBindReq(&m)
  74. a.DoGetDataByPage(&m)
  75. }
  76. // QueryMyDeListing
  77. // @Summary 查询我的摘牌
  78. // @Produce json
  79. // @Security ApiKeyAuth
  80. // @Security LoginID
  81. // @Security Group
  82. // @Param userid query int true "用户ID"
  83. // @Param page query int false "页码"
  84. // @Param pagesize query int false "每页条数"
  85. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  86. // @Param zscategorys query string false "钻石分类, 格式:1,2,3"
  87. // @Param wrtradedetailid query int false "成交单号"
  88. // @Param buyorsell query int false "方向,0-购买 1-出售"
  89. // @Param matchusername query string false "对手方(模糊匹配)"
  90. // @Param begindate query string false "开始交易日(yyyymmdd)"
  91. // @Param enddate query string false "结束交易日(yyyymmdd)"
  92. // @Success 200 {array} models.MyDeListing
  93. // @Failure 500 {object} app.Response
  94. // @Router /Guangzuan/QueryMyDeListing [get]
  95. // @Tags 广钻
  96. func QueryMyDeListing(c *gin.Context) {
  97. a := app.GinUtils{Gin: app.Gin{C: c}}
  98. m := models.MyDeListing{}
  99. a.DoBindReq(&m)
  100. a.DoGetDataByPage(&m)
  101. }
  102. // QueryMyBargainApply
  103. // @Summary 查询我的询价-求购
  104. // @Produce json
  105. // @Security ApiKeyAuth
  106. // @Security LoginID
  107. // @Security Group
  108. // @Param userid query int true "用户ID"
  109. // @Param page query int false "页码"
  110. // @Param pagesize query int false "每页条数"
  111. // @Param applystatus query int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
  112. // @Success 200 {array} models.MyBargainApply
  113. // @Failure 500 {object} app.Response
  114. // @Router /Guangzuan/QueryMyBargainApply [get]
  115. // @Tags 广钻
  116. func QueryMyBargainApply(c *gin.Context) {
  117. a := app.GinUtils{Gin: app.Gin{C: c}}
  118. m := models.MyBargainApply{}
  119. a.DoBindReq(&m)
  120. a.DoGetDataByPage(&m)
  121. }
  122. // QueryMyDelistingApply
  123. // @Summary 查询我的询价-出售
  124. // @Produce json
  125. // @Security ApiKeyAuth
  126. // @Security LoginID
  127. // @Security Group
  128. // @Param userid query int true "用户ID"
  129. // @Param page query int false "页码"
  130. // @Param pagesize query int false "每页条数"
  131. // @Param applystatus query int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
  132. // @Success 200 {array} models.MyDelistingApply
  133. // @Failure 500 {object} app.Response
  134. // @Router /Guangzuan/QueryMyDelistingApply [get]
  135. // @Tags 广钻
  136. func QueryMyDelistingApply(c *gin.Context) {
  137. a := app.GinUtils{Gin: app.Gin{C: c}}
  138. m := models.MyDelistingApply{}
  139. a.DoBindReq(&m)
  140. a.DoGetDataByPage(&m)
  141. }
  142. // QueryMyPerformanc
  143. // @Summary 查询我的履约
  144. // @Produce json
  145. // @Security ApiKeyAuth
  146. // @Security LoginID
  147. // @Security Group
  148. // @Param userid query int true "用户ID"
  149. // @Param page query int false "页码"
  150. // @Param pagesize query int false "每页条数"
  151. // @Param zsallproperties query string false "商品(查询字段-模糊查询)"
  152. // @Param buyorsell query int false "方向,0-买 1-卖"
  153. // @Param begindate query string false "开始交易日(yyyymmdd)"
  154. // @Param enddate query string false "结束交易日(yyyymmdd)"
  155. // @Success 200 {array} models.MyPerformanc
  156. // @Failure 500 {object} app.Response
  157. // @Router /Guangzuan/QueryMyPerformanc [get]
  158. // @Tags 广钻
  159. func QueryMyPerformanc(c *gin.Context) {
  160. a := app.GinUtils{Gin: app.Gin{C: c}}
  161. m := models.MyPerformanc{}
  162. a.DoBindReq(&m)
  163. a.DoGetDataByPage(&m)
  164. }