trade.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package ferroalloy
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryTHJPurchaseTradeDetail
  8. // @Summary 查询我的订单-采购订单
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Param userid query int true "用户ID"
  12. // @Param type query int false "类型 - 0:未完成 1:已完成"
  13. // @Param page query int false "页码"
  14. // @Param pagesize query int false "每页条数"
  15. // @Success 200 {array} models.Thjpurchasetradedetail
  16. // @Failure 500 {object} app.Response
  17. // @Router /Ferroalloy/QueryTHJPurchaseTradeDetail [get]
  18. // @Tags 铁合金
  19. func QueryTHJPurchaseTradeDetail(c *gin.Context) {
  20. a := app.GinUtils{Gin: app.Gin{C: c}}
  21. m := models.Thjpurchasetradedetail{}
  22. a.DoBindReq(&m)
  23. a.DoGetDataByPage(&m)
  24. }
  25. // QueryTHJTradeData
  26. // @Summary 获取我的推广-交易数据
  27. // @Produce json
  28. // @Security ApiKeyAuth
  29. // @Param userid query int true "用户ID"
  30. // @Param marketid query int true "市场ID 采购-64201 供求-65201"
  31. // @Param page query int false "页码"
  32. // @Param pagesize query int false "每页条数"
  33. // @Success 200 {array} models.THJTradeData
  34. // @Failure 500 {object} app.Response
  35. // @Router /Ferroalloy/QueryTHJTradeData [get]
  36. // @Tags 铁合金
  37. func QueryTHJTradeData(c *gin.Context) {
  38. a := app.GinUtils{Gin: app.Gin{C: c}}
  39. m := models.THJTradeData{}
  40. a.DoBindReq(&m)
  41. a.DoGetDataByPage(&m)
  42. }