/** * @Author: zou.yingbin * @Create : 2021/9/7 16:27 * @Modify : 2021/9/7 16:27 */ package tjmd import ( "github.com/gin-gonic/gin" "mtp2_if/global/app" "mtp2_if/models" ) // QueryQuoteGoodsList // @Summary 查询掉期报价列表 // @Description 用户类型必传, 查掉期报价列表 marketids=掉期市场id // @Produce json // @Security ApiKeyAuth // @Param usertype query int true "用户类型" // @Param marketids query string false "市场id, 格式 1,2,3" // @Param goodsgroupid query int false "商品组id" // @Param goodsid query int false "商品id" // @Success 200 {array} models.TjmdQuoteGoods // @Failure 500 {object} app.Response // @Router /Tjmd/QueryQuoteGoodsList [get] // @Tags 天津麦顿 func QueryQuoteGoodsList(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.TjmdQuoteGoods{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryTjmdTradeOrderDetail // @Summary 查询掉期买卖大厅 // @Description 用户类型必传, 投资者只能看到自营会员的单, 反之亦然 // @Produce json // @Security ApiKeyAuth // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param userid query int true "用户id" // @Param usertype query int true "用户类型" // @Param marketids query string false "市场id, 格式 1,2,3" // @Param goodsid query int true "商品id" // @Param buyorsell query int true "买卖方向 0-买 1-卖" // @Success 200 {array} models.TjmdTradeOrderDetail // @Failure 500 {object} app.Response // @Router /Tjmd/QueryTjmdTradeOrderDetail [get] // @Tags 天津麦顿 func QueryTjmdTradeOrderDetail(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.TjmdTradeOrderDetail{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryTjmdTransferApply // @Summary 查询掉期协议单 // @Produce json // @Security ApiKeyAuth // @Param applytype query int true "类型 1-我的申请 2-对方申请" // @Param marketids query string false "市场id, 格式 1,2,3" // @Param accountids query string false "资金账号, 格式 25000000001,25000000003" // @Param begindate query string false "开始交易日(yyyymmdd)" // @Param enddate query string false "结束交易日(yyyymmdd)" // @Success 200 {array} models.TjmdTransferApply // @Failure 500 {object} app.Response // @Router /Tjmd/QueryTjmdTransferApply [get] // @Tags 天津麦顿 func QueryTjmdTransferApply(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.TjmdTransferApply{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryTjmdTodayAccountMargin // @Summary 查询今日账户保证金配置 // @Produce json // @Security ApiKeyAuth // @Param marketid query string false "市场id" // @Param goodsid query string false "商品id" // @Param accountid query string false "资金账号" // @Success 200 {array} models.TjmdTodayAccountMargin // @Failure 500 {object} app.Response // @Router /Tjmd/QueryTjmdTodayAccountMargin [get] // @Tags 天津麦顿 func QueryTjmdTodayAccountMargin(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.TjmdTodayAccountMargin{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryTjmdMarketSection // @Summary 查询市场板块 // @Produce json // @Security ApiKeyAuth // @Success 200 {array} models.TjmdMarketSection // @Failure 500 {object} app.Response // @Router /Tjmd/QueryTjmdMarketSection [get] // @Tags 天津麦顿 func QueryTjmdMarketSection(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.TjmdMarketSection{} a.DoBindReq(&m) a.DoGetDataI(&m) }