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) } // QueryTHJPurchaseTransferOrder // @Summary 查询我的订单-转让订单 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.Thjpurchasetransfer // @Failure 500 {object} app.Response // @Router /Ferroalloy/QueryTHJPurchaseTransferOrder [get] // @Tags 铁合金 func QueryTHJPurchaseTransferOrder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.Thjpurchasetransfer{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryTHJPromotionIncome // @Summary 查询我的推广-推广收益 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.PromotionIncome // @Failure 500 {object} app.Response // @Router /Ferroalloy/QueryTHJPromotionIncome [get] // @Tags 铁合金 func QueryTHJPromotionIncome(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.PromotionIncome{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryTHJPromotionIncomeDetail // @Summary 查询我的推广-推广收益-明细 // @Produce json // @Security ApiKeyAuth // @Param userid query int true "用户ID" // @Param mouth query string true "月份,格式:yyyymm" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Success 200 {array} models.PromotionIncomeDetail // @Failure 500 {object} app.Response // @Router /Ferroalloy/QueryTHJPromotionIncomeDetail [get] // @Tags 铁合金 func QueryTHJPromotionIncomeDetail(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.PromotionIncomeDetail{} a.DoBindReq(&m) a.DoGetDataByPage(&m) }