wrposition.go 5.5 KB

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