qryQhjAgreement.go 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /**
  2. * @Author: zou.yingbin
  3. * @Create : 2021/6/30 9:29
  4. * @Modify : 2021/6/30 9:29
  5. */
  6. package qhj
  7. import (
  8. "github.com/gin-gonic/gin"
  9. "mtp2_if/global/app"
  10. "mtp2_if/models"
  11. )
  12. // QueryAgreementConfig
  13. // @Summary 查询协议配置
  14. // @Produce json
  15. // @Security ApiKeyAuth
  16. // @Param agreementid query int false "协议ID"
  17. // @Param agreementversion query int false "协议版本号"
  18. // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
  19. // @Param isvalid query int false "是否有效 - 是否有效 - 1:正常 2:停用 3:注销"
  20. // @Param agreementno query string false "协议编号(模糊匹配)"
  21. // @Param agreementname query string false "协议名称(模糊匹配)"
  22. // @Success 200 {array} models.QhjAgreementConfig
  23. // @Failure 500 {object} app.Response
  24. // @Router /QhjSys/QueryAgreementConfig [get]
  25. // @Tags 大连千海金(协议和签约信息)
  26. func QueryAgreementConfig(c *gin.Context) {
  27. a := app.GinUtils{Gin: app.Gin{C: c}}
  28. m := models.QhjAgreementConfig{}
  29. a.DoBindReq(&m)
  30. a.DoGetDataI(&m)
  31. }
  32. // QueryAgreementChangeLog
  33. // @Summary 查询协议配置变更流水
  34. // @Produce json
  35. // @Security ApiKeyAuth
  36. // @Param agreementid query int false "协议ID"
  37. // @Param agreementversion query int false "协议版本号"
  38. // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
  39. // @Param agreementno query string false "协议编号(模糊匹配)"
  40. // @Param agreementname query string false "协议名称(模糊匹配)"
  41. // @Success 200 {array} models.QhjAgreementChangeLog
  42. // @Failure 500 {object} app.Response
  43. // @Router /QhjSys/QueryAgreementChangeLog [get]
  44. // @Tags 大连千海金(协议和签约信息)
  45. func QueryAgreementChangeLog(c *gin.Context) {
  46. a := app.GinUtils{Gin: app.Gin{C: c}}
  47. m := models.QhjAgreementChangeLog{}
  48. a.DoBindReq(&m)
  49. a.DoGetDataI(&m)
  50. }
  51. // QueryNodeAgreementConfig
  52. // @Summary 查询协议节点配置
  53. // @Produce json
  54. // @Security ApiKeyAuth
  55. // @Param configid query int false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)"
  56. // @Param nodetype query int false "环节类型 - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出"
  57. // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
  58. // @Param agreementid query int false "协议ID"
  59. // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
  60. // @Param agreementversion query int false "协议版本号"
  61. // @Param agreementno query string false "协议编号(模糊匹配)"
  62. // @Param agreementname query string false "协议名称(模糊匹配)"
  63. // @Success 200 {array} models.QhjNodeAgreementConfig
  64. // @Failure 500 {object} app.Response
  65. // @Router /QhjSys/QueryNodeAgreementConfig [get]
  66. // @Tags 大连千海金(协议和签约信息)
  67. func QueryNodeAgreementConfig(c *gin.Context) {
  68. a := app.GinUtils{Gin: app.Gin{C: c}}
  69. m := models.QhjNodeAgreementConfig{}
  70. a.DoBindReq(&m)
  71. a.DoGetDataI(&m)
  72. }
  73. // QueryCustomerSignStatus
  74. // @Summary 查询客户协议签约状态
  75. // @Produce json
  76. // @Security ApiKeyAuth
  77. // @Param userid query int false "客户ID"
  78. // @Param nodetype query int false "环节类型 - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出 99:首次交易"
  79. // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
  80. // @Param tradedate query string false "创建交易日(yyyyMMdd)"
  81. // @Param username query string false "用户名称(模糊匹配)"
  82. // @Success 200 {array} models.QhjCustomerSignStatus
  83. // @Failure 500 {object} app.Response
  84. // @Router /QhjSys/QueryCustomerSignStatus [get]
  85. // @Tags 大连千海金(协议和签约信息)
  86. func QueryCustomerSignStatus(c *gin.Context) {
  87. a := app.GinUtils{Gin: app.Gin{C: c}}
  88. m := models.QhjCustomerSignStatus{}
  89. a.DoBindReq(&m)
  90. a.DoGetDataI(&m)
  91. }
  92. // QueryQhjCustomerSignLog
  93. // @Summary 查询客户协议签约流水
  94. // @Produce json
  95. // @Security ApiKeyAuth
  96. // @Param logid query int false "流水ID(SEQ_QHJ_CUSTOMERSIGNLOG)"
  97. // @Param userid query int false "客户ID"
  98. // @Param nodetype query int false "环节类型 - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出"
  99. // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
  100. // @Param agreementid query int false "协议ID"
  101. // @Param username query string false "用户名称(模糊匹配)"
  102. // @Param agreementno query string false "协议编号(模糊匹配)"
  103. // @Param agreementname query string false "协议名称(模糊匹配)"
  104. // @Success 200 {array} models.QhjCustomerSignLog
  105. // @Failure 500 {object} app.Response
  106. // @Router /QhjSys/QueryQhjCustomerSignLog [get]
  107. // @Tags 大连千海金(协议和签约信息)
  108. func QueryQhjCustomerSignLog(c *gin.Context) {
  109. a := app.GinUtils{Gin: app.Gin{C: c}}
  110. m := models.QhjCustomerSignLog{}
  111. a.DoBindReq(&m)
  112. a.DoGetDataI(&m)
  113. }
  114. // QueryUserNodeCfgAndStatus
  115. // @Summary 查询用户协议节点配置和状态
  116. // @Produce json
  117. // @Security ApiKeyAuth
  118. // @Param userid query int false "客户ID"
  119. // @Param configid query int false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)"
  120. // @Param nodetype query string false "环节类型(可多个,逗号隔开) - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出"
  121. // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
  122. // @Param agreementid query int false "协议ID"
  123. // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
  124. // @Param agreementversion query int false "协议版本号"
  125. // @Param agreementno query string false "协议编号(模糊匹配)"
  126. // @Param agreementname query string false "协议名称(模糊匹配)"
  127. // @Success 200 {array} models.QhjUserNodeCfgAndStatus
  128. // @Failure 500 {object} app.Response
  129. // @Router /QhjSys/QueryUserNodeCfgAndStatus [get]
  130. // @Tags 大连千海金(协议和签约信息)
  131. func QueryUserNodeCfgAndStatus(c *gin.Context) {
  132. a := app.GinUtils{Gin: app.Gin{C: c}}
  133. m := models.QhjUserNodeCfgAndStatus{}
  134. a.DoBindReq(&m)
  135. a.DoGetDataI(&m)
  136. }