| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /**
- * @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 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"
- // @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)
- }
|