qryTjmd.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. "github.com/gin-gonic/gin"
  9. "mtp2_if/global/app"
  10. "mtp2_if/models"
  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. // @Success 200 {array} models.TjmdTradeOrderDetail
  44. // @Failure 500 {object} app.Response
  45. // @Router /Tjmd/QueryTjmdTradeOrderDetail [get]
  46. // @Tags 天津麦顿
  47. func QueryTjmdTradeOrderDetail(c *gin.Context) {
  48. a := app.GinUtils{Gin: app.Gin{C: c}}
  49. m := models.TjmdTradeOrderDetail{}
  50. a.DoBindReq(&m)
  51. a.DoGetDataByPage(&m)
  52. }
  53. // QueryTjmdTransferApply
  54. // @Summary 查询掉期协议单
  55. // @Produce json
  56. // @Security ApiKeyAuth
  57. // @Param applytype query int true "类型 1-我的申请 2-对方申请"
  58. // @Param marketids query string false "市场id, 格式 1,2,3"
  59. // @Param accountids query string false "资金账号, 格式 25000000001,25000000003"
  60. // @Success 200 {array} models.TjmdTransferApply
  61. // @Failure 500 {object} app.Response
  62. // @Router /Tjmd/QueryTjmdTransferApply [get]
  63. // @Tags 天津麦顿
  64. func QueryTjmdTransferApply(c *gin.Context) {
  65. a := app.GinUtils{Gin: app.Gin{C: c}}
  66. m := models.TjmdTransferApply{}
  67. a.DoBindReq(&m)
  68. a.DoGetDataI(&m)
  69. }
  70. // QueryTjmdTodayAccountMargin
  71. // @Summary 查询今日账户保证金配置
  72. // @Produce json
  73. // @Security ApiKeyAuth
  74. // @Param marketid query string false "市场id"
  75. // @Param goodsid query string false "商品id"
  76. // @Param accountid query string false "资金账号"
  77. // @Success 200 {array} models.TjmdTodayAccountMargin
  78. // @Failure 500 {object} app.Response
  79. // @Router /Tjmd/QueryTjmdTodayAccountMargin [get]
  80. // @Tags 天津麦顿
  81. func QueryTjmdTodayAccountMargin(c *gin.Context) {
  82. a := app.GinUtils{Gin: app.Gin{C: c}}
  83. m := models.TjmdTodayAccountMargin{}
  84. a.DoBindReq(&m)
  85. a.DoGetDataI(&m)
  86. }