quote.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package ferroalloy
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // GetSpotGoodsPrice
  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.GErmcpspotgoodsprice
  14. // @Failure 500 {object} app.Response
  15. // @Router /Ferroalloy/GetSpotGoodsPrice [get]
  16. // @Tags 铁合金
  17. func GetSpotGoodsPrice(c *gin.Context) {
  18. a := app.GinUtils{Gin: app.Gin{C: c}}
  19. m := models.GErmcpspotgoodsprice{}
  20. a.DoBindReq(&m)
  21. a.DoGetDataByPage(&m)
  22. }
  23. // QueryTHJProduct
  24. // @Summary 获取产品介绍列表
  25. // @Produce json
  26. // @Security ApiKeyAuth
  27. // @Param userid query int true "用户ID"
  28. // @Param favoriteflag query bool false "关注标志 true-已关注 false-未关注"
  29. // @Param page query int false "页码"
  30. // @Param pagesize query int false "每页条数"
  31. // @Success 200 {array} models.THJProduct
  32. // @Failure 500 {object} app.Response
  33. // @Router /Ferroalloy/QueryTHJProduct [get]
  34. // @Tags 铁合金
  35. func QueryTHJProduct(c *gin.Context) {
  36. a := app.GinUtils{Gin: app.Gin{C: c}}
  37. m := models.THJProduct{}
  38. a.DoBindReq(&m)
  39. a.DoGetDataByPage(&m)
  40. }