presale.go 859 B

123456789101112131415161718192021222324252627
  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)"
  12. // @Param presalestatus query int false "预售状态 - 1:未开始 2:预售中 3:已结束"
  13. // @Param page query int false "页码"
  14. // @Param pagesize query int false "每页条数"
  15. // @Success 200 {array} models.PresaleAuction
  16. // @Failure 500 {object} app.Response
  17. // @Router /Presale/QueryPresaleAuctions [get]
  18. // @Tags 预售
  19. func QueryPresaleAuctions(c *gin.Context) {
  20. a := app.GinUtils{Gin: app.Gin{C: c}}
  21. m := models.PresaleAuction{}
  22. a.DoBindReq(&m)
  23. a.DoGetDataByPage(&m)
  24. }