qryTjmd.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /**
  2. * @Author: zou.yingbin
  3. * @Create : 2021/9/7 16:27
  4. * @Modify : 2021/9/7 16:27
  5. */
  6. package tjmd
  7. import (
  8. "mtp2_if/global/app"
  9. "mtp2_if/models"
  10. "github.com/gin-gonic/gin"
  11. )
  12. // QueryQuoteGoodsList
  13. // @Summary 查询掉期报价列表
  14. // @Description 用户类型必传, 查掉期报价列表 marketids=掉期市场id
  15. // @Produce json
  16. // @Security ApiKeyAuth
  17. // @Param usertype query int true "用户类型"
  18. // @Param marketids query string false "市场id, 格式 1,2,3"
  19. // @Param goodsgroupid query int false "商品组id"
  20. // @Param goodsid query int false "商品id"
  21. // @Success 200 {array} models.TjmdQuoteGoods
  22. // @Failure 500 {object} app.Response
  23. // @Router /Tjmd/QueryQuoteGoodsList [get]
  24. // @Tags 天津麦顿
  25. func QueryQuoteGoodsList(c *gin.Context) {
  26. a := app.GinUtils{Gin: app.Gin{C: c}}
  27. m := models.TjmdQuoteGoods{}
  28. a.DoBindReq(&m)
  29. a.DoGetDataI(&m)
  30. }
  31. // QueryTjmdTradeOrderDetail
  32. // @Summary 查询掉期买卖大厅
  33. // @Description 用户类型必传, 投资者只能看到自营会员的单, 反之亦然
  34. // @Produce json
  35. // @Security ApiKeyAuth
  36. // @Param page query int false "页码"
  37. // @Param pagesize query int false "每页条数"
  38. // @Param userid query int true "用户id"
  39. // @Param usertype query int true "用户类型"
  40. // @Param marketids query string false "市场id, 格式 1,2,3"
  41. // @Param goodsid query int true "商品id"
  42. // @Param buyorsell query int true "买卖方向 0-买 1-卖"
  43. // @Param memberuserid query int false "所属会员ID,传入后会将此机构的单放在最前面,主要给麦顿使用"
  44. // @Success 200 {array} models.TjmdTradeOrderDetail
  45. // @Failure 500 {object} app.Response
  46. // @Router /Tjmd/QueryTjmdTradeOrderDetail [get]
  47. // @Tags 天津麦顿
  48. func QueryTjmdTradeOrderDetail(c *gin.Context) {
  49. a := app.GinUtils{Gin: app.Gin{C: c}}
  50. m := models.TjmdTradeOrderDetail{}
  51. a.DoBindReq(&m)
  52. a.DoGetDataByPage(&m)
  53. }
  54. // QueryTjmdTransferApply
  55. // @Summary 查询掉期协议单
  56. // @Produce json
  57. // @Security ApiKeyAuth
  58. // @Param applytype query int true "类型 1-我的申请 2-对方申请"
  59. // @Param marketids query string false "市场id, 格式 1,2,3"
  60. // @Param accountids query string false "资金账号, 格式 25000000001,25000000003"
  61. // @Param begindate query string false "开始交易日(yyyymmdd)"
  62. // @Param enddate query string false "结束交易日(yyyymmdd)"
  63. // @Success 200 {array} models.TjmdTransferApply
  64. // @Failure 500 {object} app.Response
  65. // @Router /Tjmd/QueryTjmdTransferApply [get]
  66. // @Tags 天津麦顿
  67. func QueryTjmdTransferApply(c *gin.Context) {
  68. a := app.GinUtils{Gin: app.Gin{C: c}}
  69. m := models.TjmdTransferApply{}
  70. a.DoBindReq(&m)
  71. a.DoGetDataI(&m)
  72. }
  73. // QueryTjmdTodayAccountMargin
  74. // @Summary 查询今日账户保证金配置
  75. // @Produce json
  76. // @Security ApiKeyAuth
  77. // @Param marketid query string false "市场id"
  78. // @Param goodsid query string false "商品id"
  79. // @Param accountid query string false "资金账号"
  80. // @Success 200 {array} models.TjmdTodayAccountMargin
  81. // @Failure 500 {object} app.Response
  82. // @Router /Tjmd/QueryTjmdTodayAccountMargin [get]
  83. // @Tags 天津麦顿
  84. func QueryTjmdTodayAccountMargin(c *gin.Context) {
  85. a := app.GinUtils{Gin: app.Gin{C: c}}
  86. m := models.TjmdTodayAccountMargin{}
  87. a.DoBindReq(&m)
  88. a.DoGetDataI(&m)
  89. }
  90. // QueryTjmdMarketSection
  91. // @Summary 查询市场板块
  92. // @Produce json
  93. // @Security ApiKeyAuth
  94. // @Success 200 {array} models.TjmdMarketSection
  95. // @Failure 500 {object} app.Response
  96. // @Router /Tjmd/QueryTjmdMarketSection [get]
  97. // @Tags 天津麦顿
  98. func QueryTjmdMarketSection(c *gin.Context) {
  99. a := app.GinUtils{Gin: app.Gin{C: c}}
  100. m := models.TjmdMarketSection{}
  101. a.DoBindReq(&m)
  102. a.DoGetDataI(&m)
  103. }
  104. // QueryTjmdHolderDetailTradeInfo
  105. // @Summary 掉期商品订单详情(交易确认书)
  106. // @Produce json
  107. // @Security ApiKeyAuth
  108. // @param tradeid query string true "成交单号"
  109. // @Success 200 {array} models.TjmdHolderDetailTradeInfo
  110. // @Failure 500 {object} app.Response
  111. // @Router /Tjmd/QueryTjmdHolderDetailTradeInfo [get]
  112. // @Tags 天津麦顿
  113. func QueryTjmdHolderDetailTradeInfo(c *gin.Context) {
  114. a := app.GinUtils{Gin: app.Gin{C: c}}
  115. m := models.TjmdHolderDetailTradeInfo{}
  116. a.DoBindReq(&m)
  117. a.DoGetDataI(&m)
  118. }