presale.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package presale
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryTHJFriends
  8. // @Summary 查询预售竞拍列表
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Param presalemode query int true "预售模式 - 1:一口价 2:大宗式竞拍 3:挂牌预售(HSBY) 4:定金预售(大宗) 5:定金预售(中签)"
  12. // @Param presalestatus query int false "预售状态 - 1:未开始 2:预售中 3:已结束 4:已关闭"
  13. // @Param presalestatusstr query string false "预售状态 - 1:未开始 2:预售中 3:已结束 4:已关闭 (多个逗号分隔)"
  14. // @Param page query int false "页码"
  15. // @Param pagesize query int false "每页条数"
  16. // @Success 200 {array} models.PresaleAuction
  17. // @Failure 500 {object} app.Response
  18. // @Router /Presale/QueryPresaleAuctions [get]
  19. // @Tags 预售
  20. func QueryPresaleAuctions(c *gin.Context) {
  21. a := app.GinUtils{Gin: app.Gin{C: c}}
  22. m := models.PresaleAuction{}
  23. a.DoBindReq(&m)
  24. a.DoGetDataByPage(&m)
  25. }
  26. // QueryPresaleDefault
  27. // @Summary 查询转让详情
  28. // @Produce json
  29. // @Security ApiKeyAuth
  30. // @Param goodsid query int true "商品ID"
  31. // @Success 200 {object} models.PresaleDefault
  32. // @Failure 500 {object} app.Response
  33. // @Router /Presale/QueryPresaleDefault [get]
  34. // @Tags 预售
  35. func QueryPresaleDefault(c *gin.Context) {
  36. a := app.GinUtils{Gin: app.Gin{C: c}}
  37. m := models.PresaleDefault{}
  38. a.DoBindReq(&m)
  39. a.DoGetDataEx(&m)
  40. }