wrposition.go 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 zscategory query int false "钻石分类枚举ID"
  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 zscategory query int false "钻石分类枚举ID"
  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 zscategory query int false "钻石分类枚举ID"
  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. }