| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- /**
- * @Author: zou.yingbin
- * @Create : 2021/7/20 18:30
- * @Modify : 2021/7/20 18:30
- */
- package wrTrade2
- import (
- "github.com/gin-gonic/gin"
- "mtp2_if/global/app"
- "mtp2_if/models"
- )
- // QueryOrderQuote
- // @Summary 查询大厅行情列表
- // @Produce json
- // @Security ApiKeyAuth
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Param marketid query int false "仓单贸易市场id"
- // @Param wrpricetype query int true "价格方式 - 1:固定价 2-浮动价"
- // @Param haswr query int true "是否有仓单 0-没有 1-有(仓单贸易填1,产能预售填0)"
- // @Param wrstandardname query string false "商品名称(筛选条件)"
- // @Param brandname query string false "品牌名称(筛选条件)"
- // @Param warehouseid query int false "仓库id(筛选条件)"
- // @Success 200 {array} models.WrOrderQuote
- // @Failure 500 {object} app.Response
- // @Router /WrTrade2/QueryOrderQuote [get]
- // @Tags 仓单贸易v2
- func QueryOrderQuote(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.WrOrderQuote{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
- // QueryOrderQuote
- // @Summary 查询买卖大厅
- // @Produce json
- // @Security ApiKeyAuth
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Param marketid query int false "仓单贸易市场id"
- // @Param wrpricetype query int true "价格方式 - 1:固定价 2-浮动价"
- // @Param haswr query int true "是否有仓单 0-没有 1-有(仓单贸易填1,仓单预售填0)"
- // @Param wrfactortypeid query int true "仓单要素id"
- // @Param goodsid query int true "期货商品id"
- // @Param buyorsell query int true "买卖方向 0-买 1-卖"
- // @Success 200 {array} models.WrOrderQuoteDetail
- // @Failure 500 {object} app.Response
- // @Router /WrTrade2/QueryOrderQuoteDetail [get]
- // @Tags 仓单贸易v2
- func QueryOrderQuoteDetail(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.WrOrderQuoteDetail{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
- // QueryWrPosition
- // @Summary 查询现货(预售)仓单持仓
- // @Description 页面 现货仓单->现货汇总/库存汇总/现货明细 ; 预售仓单->订单汇总
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户id"
- // @Param querytype query int true "查询类型 1-现货汇总 2-库存汇总(订单汇总) 3-现货明细"
- // @Success 200 {array} models.WrPosition
- // @Failure 500 {object} app.Response
- // @Router /WrTrade2/QueryWrPosition [get]
- // @Tags 仓单贸易v2
- func QueryWrPosition(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.WrPosition{}
- a.DoBindReq(&m)
- a.DoGetDataI(&m)
- }
- // QueryWrOrderDetail
- // @Summary 查询仓单委托单(挂单)
- // @Description 页面 现货仓单 | 预售仓单 -> 挂单
- // @Produce json
- // @Security ApiKeyAuth
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Param userid query int true "用户id"
- // @Param marketid query int false "仓单贸易市场id"
- // @Param haswr query int true "是否有仓单 0-没有 1-有(仓单贸易填1,仓单预售填0)"
- // @Success 200 {array} models.WrOrderDetail
- // @Failure 500 {object} app.Response
- // @Router /WrTrade2/QueryWrOrderDetail [get]
- // @Tags 仓单贸易v2
- func QueryWrOrderDetail(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.WrOrderDetail{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
- // QueryWrSpecialMatchOrder
- // @Summary 查询指定成交
- // @Description 页面 现货仓单 | 预售仓单 -> 指定成交
- // @Produce json
- // @Security ApiKeyAuth
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Param userid query int true "用户id"
- // @Param marketid query int false "仓单贸易市场id"
- // @Param haswr query int true "是否有仓单 0-没有 1-有(仓单贸易填1,仓单预售填0)"
- // @Success 200 {array} models.WrSpecialMatchOrder
- // @Failure 500 {object} app.Response
- // @Router /WrTrade2/QueryWrSpecialMatchOrder [get]
- // @Tags 仓单贸易v2
- func QueryWrSpecialMatchOrder(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.WrSpecialMatchOrder{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
- // QueryWrTradeDetail
- // @Summary 查询仓单成交明细
- // @Produce json
- // @Security ApiKeyAuth
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Param userid query int true "用户id"
- // @Param marketid query int false "仓单贸易市场id"
- // @Param haswr query int true "是否有仓单 0-没有 1-有(仓单贸易填1,仓单预售填0)"
- // @Success 200 {array} models.WrTradeDetail
- // @Failure 500 {object} app.Response
- // @Router /WrTrade2/QueryWrTradeDetail [get]
- // @Tags 仓单贸易v2
- func QueryWrTradeDetail(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.WrTradeDetail{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
|