| 123456789101112131415161718192021222324252627 |
- package presale
- import (
- "mtp2_if/global/app"
- "mtp2_if/models"
- "github.com/gin-gonic/gin"
- )
- // QueryTHJFriends
- // @Summary 查询预售竞拍列表
- // @Produce json
- // @Security ApiKeyAuth
- // @Param presalemode query int true "预售模式 - 1:一口价 2:大宗式竞拍 3:挂牌预售(HSBY)"
- // @Param presalestatus query int false "预售状态 - 1:未开始 2:预售中 3:已结束"
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Success 200 {array} models.PresaleAuction
- // @Failure 500 {object} app.Response
- // @Router /Presale/QueryPresaleAuctions [get]
- // @Tags 预售
- func QueryPresaleAuctions(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.PresaleAuction{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
|