presale.go 751 B

1234567891011121314151617181920212223242526
  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 page query int false "页码"
  13. // @Param pagesize query int false "每页条数"
  14. // @Success 200 {array} models.PresaleAuction
  15. // @Failure 500 {object} app.Response
  16. // @Router /Presale/QueryPresaleAuctions [get]
  17. // @Tags 铁合金
  18. func QueryPresaleAuctions(c *gin.Context) {
  19. a := app.GinUtils{Gin: app.Gin{C: c}}
  20. m := models.PresaleAuction{}
  21. a.DoBindReq(&m)
  22. a.DoGetDataByPage(&m)
  23. }