qryTjmd.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 usertype query int true "用户类型"
  39. // @Param marketids query string false "市场id, 格式 1,2,3"
  40. // @Param goodsid query int true "商品id"
  41. // @Param buyorsell query int true "买卖方向 0-买 1-卖"
  42. // @Success 200 {array} models.TjmdTradeOrderDetail
  43. // @Failure 500 {object} app.Response
  44. // @Router /Tjmd/QueryTjmdTradeOrderDetail [get]
  45. // @Tags 天津麦顿
  46. func QueryTjmdTradeOrderDetail(c *gin.Context) {
  47. a := app.GinUtils{Gin: app.Gin{C: c}}
  48. m := models.TjmdTradeOrderDetail{}
  49. a.DoBindReq(&m)
  50. a.DoGetDataByPage(&m)
  51. }
  52. // QueryTjmdTransferApply
  53. // @Summary 查询掉期协议单
  54. // @Produce json
  55. // @Security ApiKeyAuth
  56. // @Param applytype query int true "类型 1-我的申请 2-对方申请"
  57. // @Param marketids query string false "市场id, 格式 1,2,3"
  58. // @Param accountids query string false "资金账号, 格式 25000000001,25000000003"
  59. // @Success 200 {array} models.TjmdTransferApply
  60. // @Failure 500 {object} app.Response
  61. // @Router /Tjmd/QueryTjmdTransferApply [get]
  62. // @Tags 天津麦顿
  63. func QueryTjmdTransferApply(c *gin.Context) {
  64. a := app.GinUtils{Gin: app.Gin{C: c}}
  65. m := models.TjmdTransferApply{}
  66. a.DoBindReq(&m)
  67. a.DoGetDataI(&m)
  68. }