qryWrTrade.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. /**
  2. * @Author: zou.yingbin
  3. * @Create : 2021/7/20 18:30
  4. * @Modify : 2021/7/20 18:30
  5. */
  6. package wrTrade2
  7. import (
  8. "github.com/gin-gonic/gin"
  9. "mtp2_if/global/app"
  10. "mtp2_if/models"
  11. )
  12. // QueryOrderQuote
  13. // @Summary 查询大厅行情列表
  14. // @Description 仓单交易 wrfactortypeid 唯一确定1条记录, 仓单预售 wrfactortypeid + deliverymonth 唯一确定1条记录
  15. // @Produce json
  16. // @Security ApiKeyAuth
  17. // @Param page query int false "页码"
  18. // @Param pagesize query int false "每页条数"
  19. // @Param marketid query int false "仓单贸易市场id"
  20. // @Param wrpricetype query int true "价格方式 - 1:固定价 2-浮动价"
  21. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  22. // @Param dgitemname query string false "商品要素项名称模糊匹配, 逗号隔开, 如 产地1,品牌1,规格12mm"
  23. // @Param warehouseid query int false "仓库id(筛选条件)"
  24. // @Param deliverygoodsid query int false "品种id"
  25. // @Param wrstandardid query int false "品类id"
  26. // @Param wrfactortypeid query int false "仓单要素id"
  27. // @Param deliverymonth query string false "交收月(yyyy-mm) 仓单预售填写"
  28. // @Success 200 {array} models.WrOrderQuote
  29. // @Failure 500 {object} app.Response
  30. // @Router /WrTrade2/QueryOrderQuote [get]
  31. // @Tags 仓单贸易v2
  32. func QueryOrderQuote(c *gin.Context) {
  33. a := app.GinUtils{Gin: app.Gin{C: c}}
  34. m := models.WrOrderQuote{}
  35. a.DoBindReq(&m)
  36. a.DoGetDataByPage(&m)
  37. }
  38. // QueryOrderQuoteDetail
  39. // @Summary 查询买卖大厅
  40. // @Produce json
  41. // @Security ApiKeyAuth
  42. // @Param page query int false "页码"
  43. // @Param pagesize query int false "每页条数"
  44. // @Param marketid query int false "仓单贸易市场id"
  45. // @Param wrpricetype query int true "价格方式 - 1:固定价 2-浮动价"
  46. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  47. // @Param wrfactortypeid query int true "仓单要素id"
  48. // @Param goodsid query int false "期货商品id(浮动价方式时填)"
  49. // @Param buyorsell query int true "买卖方向 0-买 1-卖"
  50. // @Param deliverymonth query string false "交收月(yyyy-mm) 查仓单预售的买卖大厅时填写"
  51. // @Success 200 {array} models.WrOrderQuoteDetail
  52. // @Failure 500 {object} app.Response
  53. // @Router /WrTrade2/QueryOrderQuoteDetail [get]
  54. // @Tags 仓单贸易v2
  55. func QueryOrderQuoteDetail(c *gin.Context) {
  56. a := app.GinUtils{Gin: app.Gin{C: c}}
  57. m := models.WrOrderQuoteDetail{}
  58. a.DoBindReq(&m)
  59. a.DoGetDataByPage(&m)
  60. }
  61. // QueryOrderQuoteMyq
  62. // @Summary 查询贸易圈挂牌大厅
  63. // @Description
  64. // @Produce json
  65. // @Security ApiKeyAuth
  66. // @Param page query int false "页码"
  67. // @Param pagesize query int false "每页条数"
  68. // @Param marketid query int false "仓单贸易市场id"
  69. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  70. // @Param buyorsell query int true "买卖方向 0-买 1-卖"
  71. // @Success 200 {array} models.WrQuoteOrderMyq
  72. // @Failure 500 {object} app.Response
  73. // @Router /WrTrade2/QueryOrderQuoteMyq [get]
  74. // @Tags 仓单贸易v2
  75. func QueryOrderQuoteMyq(c *gin.Context) {
  76. a := app.GinUtils{Gin: app.Gin{C: c}}
  77. m := models.WrQuoteOrderMyq{}
  78. a.DoBindReq(&m)
  79. a.DoGetDataByPage(&m)
  80. }
  81. // QueryWrPosition
  82. // @Summary 查询现货(预售)仓单持仓
  83. // @Description 页面 现货仓单->现货汇总/库存汇总; 预售仓单->订单汇总
  84. // @Produce json
  85. // @Security ApiKeyAuth
  86. // @Param userid query int true "用户id"
  87. // @Param querytype query int true "查询类型 1-现货汇总 2-库存汇总(订单汇总)"
  88. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  89. // @Param dgitemname query string false "商品要素项名称模糊匹配, 逗号隔开, 如 产地1,品牌1,规格12mm"
  90. // @Param warehouseid query int false "仓库id(筛选条件)"
  91. // @Param deliverygoodsid query int false "品种id"
  92. // @Param wrstandardid query int false "品类id"
  93. // @Success 200 {array} models.WrPosition
  94. // @Failure 500 {object} app.Response
  95. // @Router /WrTrade2/QueryWrPosition [get]
  96. // @Tags 仓单贸易v2
  97. func QueryWrPosition(c *gin.Context) {
  98. a := app.GinUtils{Gin: app.Gin{C: c}}
  99. m := models.WrPosition{}
  100. a.DoBindReq(&m)
  101. a.DoGetDataI(&m)
  102. }
  103. // QueryWrOrderDetail
  104. // @Summary 查询仓单委托单(挂单)
  105. // @Description 页面 现货仓单 | 预售仓单 -> 挂单
  106. // @Produce json
  107. // @Security ApiKeyAuth
  108. // @Param page query int false "页码"
  109. // @Param pagesize query int false "每页条数"
  110. // @Param userid query int true "用户id"
  111. // @Param marketid query int false "仓单贸易市场id"
  112. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  113. // @Success 200 {array} models.WrOrderDetail
  114. // @Failure 500 {object} app.Response
  115. // @Router /WrTrade2/QueryWrOrderDetail [get]
  116. // @Tags 仓单贸易v2
  117. func QueryWrOrderDetail(c *gin.Context) {
  118. a := app.GinUtils{Gin: app.Gin{C: c}}
  119. m := models.WrOrderDetail{}
  120. a.DoBindReq(&m)
  121. a.DoGetDataByPage(&m)
  122. }
  123. // QueryWrSpecialMatchOrder
  124. // @Summary 查询指定成交
  125. // @Description 页面 现货仓单 | 预售仓单 -> 指定成交
  126. // @Produce json
  127. // @Security ApiKeyAuth
  128. // @Param page query int false "页码"
  129. // @Param pagesize query int false "每页条数"
  130. // @Param userid query int true "用户id"
  131. // @Param marketid query int false "仓单贸易市场id"
  132. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  133. // @Success 200 {array} models.WrSpecialMatchOrder
  134. // @Failure 500 {object} app.Response
  135. // @Router /WrTrade2/QueryWrSpecialMatchOrder [get]
  136. // @Tags 仓单贸易v2
  137. func QueryWrSpecialMatchOrder(c *gin.Context) {
  138. a := app.GinUtils{Gin: app.Gin{C: c}}
  139. m := models.WrSpecialMatchOrder{}
  140. a.DoBindReq(&m)
  141. a.DoGetDataByPage(&m)
  142. }
  143. // QueryWrTradeDetail
  144. // @Summary 查询仓单成交明细
  145. // @Produce json
  146. // @Security ApiKeyAuth
  147. // @Param page query int false "页码"
  148. // @Param pagesize query int false "每页条数"
  149. // @Param userid query int true "用户id"
  150. // @Param marketid query int false "仓单贸易市场id"
  151. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  152. // @Success 200 {array} models.WrTradeDetail
  153. // @Failure 500 {object} app.Response
  154. // @Router /WrTrade2/QueryWrTradeDetail [get]
  155. // @Tags 仓单贸易v2
  156. func QueryWrTradeDetail(c *gin.Context) {
  157. a := app.GinUtils{Gin: app.Gin{C: c}}
  158. m := models.WrTradeDetail{}
  159. a.DoBindReq(&m)
  160. a.DoGetDataByPage(&m)
  161. }
  162. // QueryWrGoodsInfo
  163. // @Summary 查询仓单商品信息
  164. // @Produce json
  165. // @Security ApiKeyAuth
  166. // @Param marketid query int false "仓单贸易市场id"
  167. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  168. // @Param wrfactortypeid query int true "仓单要素id"
  169. // @Success 200 {array} models.WrGoodsInfo
  170. // @Failure 500 {object} app.Response
  171. // @Router /WrTrade2/QueryWrGoodsInfo [get]
  172. // @Tags 仓单贸易v2
  173. func QueryWrGoodsInfo(c *gin.Context) {
  174. a := app.GinUtils{Gin: app.Gin{C: c}}
  175. m := models.WrGoodsInfo{}
  176. a.DoBindReq(&m)
  177. a.DoGetDataI(&m)
  178. }
  179. // QueryPerformancePlan
  180. // @Summary 查询履约信息
  181. // @Produce json
  182. // @Security ApiKeyAuth
  183. // @Param userid query int true "用户id"
  184. // @Param buyorsell query int true "买卖方向 0-买 1-卖"
  185. // @Success 200 {array} models.WrPerformancePlan
  186. // @Failure 500 {object} app.Response
  187. // @Router /WrTrade2/QueryPerformancePlan [get]
  188. // @Tags 仓单贸易v2
  189. func QueryPerformancePlan(c *gin.Context) {
  190. a := app.GinUtils{Gin: app.Gin{C: c}}
  191. m := models.WrPerformancePlan{}
  192. a.DoBindReq(&m)
  193. a.DoGetDataI(&m)
  194. }
  195. // QueryHoldLB
  196. // @Summary 查询仓单持有记录
  197. // @Description 页面 现货仓单->现货明细? , 表名叫仓单持有记录, 有挂单特有维度,为防误解汇总也有相关维度, 新写接口,不跟汇总合在一起了。
  198. // @Produce json
  199. // @Security ApiKeyAuth
  200. // @Param accountid query int true "资金账号"
  201. // @Param warehouseid query int false "仓库id"
  202. // @Param deliverygoodsid query int false "品种id"
  203. // @Param wrstandardid query int false "品类id"
  204. // @Param wrfactortypeid query int false "仓单要素id"
  205. // @Success 200 {array} models.WrHoldLB
  206. // @Failure 500 {object} app.Response
  207. // @Router /WrTrade2/QueryHoldLB [get]
  208. // @Tags 仓单贸易v2
  209. func QueryHoldLB(c *gin.Context) {
  210. a := app.GinUtils{Gin: app.Gin{C: c}}
  211. m := models.WrHoldLB{}
  212. a.DoBindReq(&m)
  213. a.DoGetDataI(&m)
  214. }
  215. // QueryFilterItem
  216. // @Summary 查询筛选框列表 - 作废(以前给pcweb简单筛选框用的,后来改版了)
  217. // @Produce json
  218. // @Security ApiKeyAuth
  219. // @Param itype query string true "类型(可多选,逗号隔开) 1-品种 2-品类(商品) 3-仓库"
  220. // @Success 200 {array} models.WrFilterItem
  221. // @Failure 500 {object} app.Response
  222. // @Router /WrTrade2/QueryFilterItem [get]
  223. // @Tags 仓单贸易v2
  224. func QueryFilterItem(c *gin.Context) {
  225. a := app.GinUtils{Gin: app.Gin{C: c}}
  226. m := models.WrFilterItem{}
  227. a.DoBindReq(&m)
  228. a.DoGetDataI(&m)
  229. }
  230. // QueryFaProductDetail
  231. // @Summary 查询融资产品列表
  232. // @Description 页面 买卖大厅 -> 选择融资方案
  233. // @Produce json
  234. // @Security ApiKeyAuth
  235. // @Param wrfactortypeid query int true "仓单要素id"
  236. // @Success 200 {array} models.WrFAProductDetail
  237. // @Failure 500 {object} app.Response
  238. // @Router /WrTrade2/QueryFaProductDetail [get]
  239. // @Tags 仓单贸易v2
  240. func QueryFaProductDetail(c *gin.Context) {
  241. a := app.GinUtils{Gin: app.Gin{C: c}}
  242. m := models.WrFAProductDetail{}
  243. a.DoBindReq(&m)
  244. a.DoGetDataI(&m)
  245. }
  246. // QueryWrFactorTypeInfo
  247. // @Summary 查询仓单要素详细信息
  248. // @Produce json
  249. // @Security ApiKeyAuth
  250. // @Param wrfactortypeid query int true "仓单要素id"
  251. // @Success 200 {array} models.WrFactorTypeInfo
  252. // @Failure 500 {object} app.Response
  253. // @Router /WrTrade2/QueryWrFactorTypeInfo [get]
  254. // @Tags 仓单贸易v2
  255. func QueryWrFactorTypeInfo(c *gin.Context) {
  256. a := app.GinUtils{Gin: app.Gin{C: c}}
  257. m := models.WrFactorTypeInfo{}
  258. a.DoBindReq(&m)
  259. a.DoGetDataI(&m)
  260. }
  261. // QueryWrFactorTypeInfoEx
  262. // @Summary 查询仓单要素详细信息列表项
  263. // @Produce json
  264. // @Security ApiKeyAuth
  265. // @Param wrfactortypeid query int true "仓单要素id"
  266. // @Success 200 {array} models.WrTypeItem
  267. // @Failure 500 {object} app.Response
  268. // @Router /WrTrade2/QueryWrFactorTypeInfoEx [get]
  269. // @Tags 仓单贸易v2
  270. func QueryWrFactorTypeInfoEx(c *gin.Context) {
  271. a := app.GinUtils{Gin: app.Gin{C: c}}
  272. m := models.WrFactorTypeInfoEx{}
  273. a.DoBindReq(&m)
  274. a.DoGetDataI(&m)
  275. }
  276. // QueryWrMarketTradeConfig
  277. // @Summary 查询市场交易参数配置
  278. // @Produce json
  279. // @Security ApiKeyAuth
  280. // @Param marketid query int false "市场id"
  281. // @Success 200 {array} models.WrMarketTradeConfig
  282. // @Failure 500 {object} app.Response
  283. // @Router /WrTrade2/QueryWrMarketTradeConfig [get]
  284. // @Tags 仓单贸易v2
  285. func QueryWrMarketTradeConfig(c *gin.Context) {
  286. a := app.GinUtils{Gin: app.Gin{C: c}}
  287. m := models.WrMarketTradeConfig{}
  288. a.DoBindReq(&m)
  289. a.DoGetDataI(&m)
  290. }
  291. // QueryFtDeliveryGoods
  292. // @Summary 查询品种品类筛选框列表
  293. // @Produce json
  294. // @Security ApiKeyAuth
  295. // @Success 200 {array} models.WrFtDeliveryGoods
  296. // @Failure 500 {object} app.Response
  297. // @Router /WrTrade2/QueryFtDeliveryGoods [get]
  298. // @Tags 仓单贸易v2
  299. func QueryFtDeliveryGoods(c *gin.Context) {
  300. a := app.GinUtils{Gin: app.Gin{C: c}}
  301. m := models.WrFtDeliveryGoods{}
  302. a.DoBindReq(&m)
  303. a.DoGetDataI(&m)
  304. }
  305. // QueryWrStandardFactoryItem
  306. // @Summary 查询品类要素定义项
  307. // @Produce json
  308. // @Security ApiKeyAuth
  309. // @Param wrstandardid query int true "品类id"
  310. // @Success 200 {array} models.WrStandardFactoryItemEx
  311. // @Failure 500 {object} app.Response
  312. // @Router /WrTrade2/QueryWrStandardFactoryItem [get]
  313. // @Tags 仓单贸易v2
  314. func QueryWrStandardFactoryItem(c *gin.Context) {
  315. a := app.GinUtils{Gin: app.Gin{C: c}}
  316. m := models.WrStandardFactoryItemEx{}
  317. a.DoBindReq(&m)
  318. a.DoGetDataI(&m)
  319. }
  320. // QueryWrPerformancePlanStep
  321. // @Summary 查询履约信息详情
  322. // @Produce json
  323. // @Security ApiKeyAuth
  324. // @Param planid query int true "履约计划id(performanceplanid)"
  325. // @Param curstepid query int false "当前步骤id"
  326. // @Success 200 {array} models.WrPerformancePlanStep
  327. // @Failure 500 {object} app.Response
  328. // @Router /WrTrade2/QueryWrPerformancePlanStep [get]
  329. // @Tags 仓单贸易v2
  330. func QueryWrPerformancePlanStep(c *gin.Context) {
  331. a := app.GinUtils{Gin: app.Gin{C: c}}
  332. m := models.WrPerformancePlanStep{}
  333. a.DoBindReq(&m)
  334. a.DoGetDataI(&m)
  335. }
  336. // QueryWrFinanceBuyApply
  337. // @Summary 查询融资购买申请
  338. // @Description 页面 融资信息+ / 申请单
  339. // @Produce json
  340. // @Security ApiKeyAuth
  341. // @Param userid query int true "用户id"
  342. // @Success 200 {array} models.WrFinanceBuyApply
  343. // @Failure 500 {object} app.Response
  344. // @Router /WrTrade2/QueryWrFinanceBuyApply [get]
  345. // @Tags 仓单贸易v2
  346. func QueryWrFinanceBuyApply(c *gin.Context) {
  347. a := app.GinUtils{Gin: app.Gin{C: c}}
  348. m := models.WrFinanceBuyApply{}
  349. a.DoBindReq(&m)
  350. a.DoGetDataI(&m)
  351. }
  352. // QueryWrScfContract
  353. // @Summary 查询仓单贸易融资合同
  354. // @Produce json
  355. // @Security ApiKeyAuth
  356. // @Param userid query int true "用户id"
  357. // @Param scfcontractid query int false "融资合同id"
  358. // @Success 200 {array} models.WrScfContract
  359. // @Failure 500 {object} app.Response
  360. // @Router /WrTrade2/QueryWrScfContract [get]
  361. // @Tags 仓单贸易v2
  362. func QueryWrScfContract(c *gin.Context) {
  363. a := app.GinUtils{Gin: app.Gin{C: c}}
  364. m := models.WrScfContract{}
  365. a.DoBindReq(&m)
  366. a.DoGetDataI(&m)
  367. }
  368. // QueryWrBuybackDetail
  369. // @Summary 查询仓单回购明细
  370. // @Produce json
  371. // @Security ApiKeyAuth
  372. // @Param scfcontractid query int false "融资合同id"
  373. // @Success 200 {array} models.WrBuybackDetail
  374. // @Failure 500 {object} app.Response
  375. // @Router /WrTrade2/QueryWrBuybackDetail [get]
  376. // @Tags 仓单贸易v2
  377. func QueryWrBuybackDetail(c *gin.Context) {
  378. a := app.GinUtils{Gin: app.Gin{C: c}}
  379. m := models.WrBuybackDetail{}
  380. a.DoBindReq(&m)
  381. a.DoGetDataI(&m)
  382. }
  383. // QueryWrScfContractInterest
  384. // @Summary 查询融资合同费用明细
  385. // @Produce json
  386. // @Security ApiKeyAuth
  387. // @Param scfcontractid query int false "融资合同id"
  388. // @Success 200 {array} models.WrScfContractInterest
  389. // @Failure 500 {object} app.Response
  390. // @Router /WrTrade2/QueryWrScfContractInterest [get]
  391. // @Tags 仓单贸易v2
  392. func QueryWrScfContractInterest(c *gin.Context) {
  393. a := app.GinUtils{Gin: app.Gin{C: c}}
  394. m := models.WrScfContractInterest{}
  395. a.DoBindReq(&m)
  396. a.DoGetDataI(&m)
  397. }
  398. // QueryWrOutInApply
  399. // @Summary 查询提货申请
  400. // @Produce json
  401. // @Security ApiKeyAuth
  402. // @Param userid query int true "用户id"
  403. // @Success 200 {array} models.WrOutInApply
  404. // @Failure 500 {object} app.Response
  405. // @Router /WrTrade2/QueryWrOutInApply [get]
  406. // @Tags 仓单贸易v2
  407. func QueryWrOutInApply(c *gin.Context) {
  408. a := app.GinUtils{Gin: app.Gin{C: c}}
  409. m := models.WrOutInApply{}
  410. a.DoBindReq(&m)
  411. a.DoGetDataI(&m)
  412. }
  413. // QueryWrDeliveryDetail
  414. // @Summary 查询交收
  415. // @Produce json
  416. // @Security ApiKeyAuth
  417. // @Param userid query int true "用户id"
  418. // @Param accountid query int false "资金账号id"
  419. // @Success 200 {array} models.WrDeliveryDetail
  420. // @Failure 500 {object} app.Response
  421. // @Router /WrTrade2/QueryWrDeliveryDetail [get]
  422. // @Tags 仓单贸易v2
  423. func QueryWrDeliveryDetail(c *gin.Context) {
  424. a := app.GinUtils{Gin: app.Gin{C: c}}
  425. m := models.WrDeliveryDetail{}
  426. a.DoBindReq(&m)
  427. a.DoGetDataI(&m)
  428. }
  429. // QueryWrBsGoodsInfo
  430. // @Summary 查询合约交易买卖大厅详情
  431. // @Description 合约交易/买卖大厅/详情
  432. // @Produce json
  433. // @Security ApiKeyAuth
  434. // @Param goodsid query int true "商品id"
  435. // @Success 200 {array} models.WrBsGoodsInfo
  436. // @Failure 500 {object} app.Response
  437. // @Router /WrTrade2/QueryWrBsGoodsInfo [get]
  438. // @Tags 仓单贸易v2
  439. func QueryWrBsGoodsInfo(c *gin.Context) {
  440. a := app.GinUtils{Gin: app.Gin{C: c}}
  441. m := models.WrBsGoodsInfo{}
  442. a.DoBindReq(&m)
  443. a.DoGetDataI(&m)
  444. }
  445. // QueryWrTradeOrderDetail
  446. // @Summary 查询合约交易买卖大厅
  447. // @Produce json
  448. // @Security ApiKeyAuth
  449. // @Param page query int false "页码"
  450. // @Param pagesize query int false "每页条数"
  451. // @Param goodsid query int true "商品id"
  452. // @Param buyorsell query int true "买卖方向 0-买 1-卖"
  453. // @Success 200 {array} models.WrTradeOrderDetail
  454. // @Failure 500 {object} app.Response
  455. // @Router /WrTrade2/QueryWrTradeOrderDetail [get]
  456. // @Tags 仓单贸易v2
  457. func QueryWrTradeOrderDetail(c *gin.Context) {
  458. a := app.GinUtils{Gin: app.Gin{C: c}}
  459. m := models.WrTradeOrderDetail{}
  460. a.DoBindReq(&m)
  461. a.DoGetDataI(&m)
  462. }
  463. // QueryWrAverageTradePrice
  464. // @Summary 查询成交价(历史走势)
  465. // @Produce json
  466. // @Security ApiKeyAuth
  467. // @Param page query int false "页码"
  468. // @Param pagesize query int false "每页条数"
  469. // @Param haswr query int true "0:仓单预售 1:仓单贸易"
  470. // @Param wrfactortypeid query int true "仓单要素id"
  471. // @Success 200 {array} models.WrAverageTradePrice
  472. // @Failure 500 {object} app.Response
  473. // @Router /WrTrade2/QueryWrAverageTradePrice [get]
  474. // @Tags 仓单贸易v2
  475. func QueryWrAverageTradePrice(c *gin.Context) {
  476. a := app.GinUtils{Gin: app.Gin{C: c}}
  477. m := models.WrAverageTradePrice{}
  478. a.DoBindReq(&m)
  479. a.DoGetDataByPage(&m)
  480. }
  481. // QueryWrDeliveryAvalidHoldLB
  482. // @Summary 查询合约交收可点选仓单
  483. // @Produce json
  484. // @Security ApiKeyAuth
  485. // @Param accountid query int true "资金账号"
  486. // @Param goodsid query int true "商品id"
  487. // @Success 200 {array} models.WrDeliveryAvalidHoldLB
  488. // @Failure 500 {object} app.Response
  489. // @Router /WrTrade2/QueryWrDeliveryAvalidHoldLB [get]
  490. // @Tags 仓单贸易v2
  491. func QueryWrDeliveryAvalidHoldLB(c *gin.Context) {
  492. a := app.GinUtils{Gin: app.Gin{C: c}}
  493. m := models.WrDeliveryAvalidHoldLB{}
  494. a.DoBindReq(&m)
  495. a.DoGetDataI(&m)
  496. }