| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- 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 ordertype query int true "类型 - 1:转让 2:受让 3:转让委托已完成"
- // @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)
- }
- // QueryTHJPurchaseTransferOrderDetail
- // @Summary 查询我的订单-转让/受让订单-详情
- // @Produce json
- // @Security ApiKeyAuth
- // @Param transferid query string true "转让单号"
- // @Success 200 {array} models.ThjpurchasetransferDetail
- // @Failure 500 {object} app.Response
- // @Router /Ferroalloy/QueryTHJPurchaseTransferOrderDetail [get]
- // @Tags 铁合金
- func QueryTHJPurchaseTransferOrderDetail(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.ThjpurchasetransferDetail{}
- a.DoBindReq(&m)
- a.DoGetDataEx(&m)
- }
- // QueryTHJPromotionIncome
- // @Summary 查询我的推广-推广收益
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param profitstatus query int false "状态 - 0:全部 1:已支付 2:未支付"
- // @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)
- }
|