| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package ferroalloy
- import (
- "mtp2_if/global/app"
- "mtp2_if/models"
- "github.com/gin-gonic/gin"
- )
- // QueryTHJPurchaseTradeDetail
- // @Summary 查询我的订单-采购订单
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param type query int false "类型 - 0:未完成 1:已完成"
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Success 200 {array} models.Thjpurchasetradedetail
- // @Failure 500 {object} app.Response
- // @Router /Ferroalloy/QueryTHJPurchaseTradeDetail [get]
- // @Tags 铁合金
- func QueryTHJPurchaseTradeDetail(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.Thjpurchasetradedetail{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
- // QueryTHJTradeData
- // @Summary 获取我的推广-交易数据
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param marketid query int true "市场ID 采购-64201 供求-65201"
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Success 200 {array} models.THJTradeData
- // @Failure 500 {object} app.Response
- // @Router /Ferroalloy/QueryTHJTradeData [get]
- // @Tags 铁合金
- func QueryTHJTradeData(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.THJTradeData{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
|