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