hnsh.go 614 B

12345678910111213141516171819202122232425
  1. package hnsh
  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 page query int false "页码"
  12. // @Param pagesize query int false "每页条数"
  13. // @Success 200 {array} models.PresaleGoods
  14. // @Failure 500 {object} app.Response
  15. // @Router /Hnsh/QueryPresaleGoods [get]
  16. // @Tags 华南石化
  17. func QueryPresaleGoods(c *gin.Context) {
  18. a := app.GinUtils{Gin: app.Gin{C: c}}
  19. m := models.PresaleGoods{}
  20. a.DoBindReq(&m)
  21. a.DoGetDataByPage(&m)
  22. }