/** * @Author: zou.yingbin * @Create : 2021/6/30 9:29 * @Modify : 2021/6/30 9:29 */ package qhj import ( "github.com/gin-gonic/gin" "mtp2_if/global/app" "mtp2_if/models" ) // QueryAgreementConfig // @Summary 查询协议配置 // @Produce json // @Security ApiKeyAuth // @Param agreementid query int false "协议ID" // @Param agreementversion query int false "协议版本号" // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易" // @Param isvalid query int false "是否有效 - 是否有效 - 1:正常 2:停用 3:注销" // @Param agreementno query string false "协议编号(模糊匹配)" // @Param agreementname query string false "协议名称(模糊匹配)" // @Success 200 {array} models.QhjAgreementConfig // @Failure 500 {object} app.Response // @Router /QhjSys/QueryAgreementConfig [get] // @Tags 大连千海金(协议和签约信息) func QueryAgreementConfig(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.QhjAgreementConfig{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryAgreementChangeLog // @Summary 查询协议配置变更流水 // @Produce json // @Security ApiKeyAuth // @Param agreementid query int false "协议ID" // @Param agreementversion query int false "协议版本号" // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易" // @Param agreementno query string false "协议编号(模糊匹配)" // @Param agreementname query string false "协议名称(模糊匹配)" // @Success 200 {array} models.QhjAgreementChangeLog // @Failure 500 {object} app.Response // @Router /QhjSys/QueryAgreementChangeLog [get] // @Tags 大连千海金(协议和签约信息) func QueryAgreementChangeLog(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.QhjAgreementChangeLog{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryNodeAgreementConfig // @Summary 查询协议节点配置 // @Produce json // @Security ApiKeyAuth // @Param configid query int false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)" // @Param nodetype query int false "环节类型 - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出" // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]" // @Param agreementid query int false "协议ID" // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易" // @Param agreementversion query int false "协议版本号" // @Param agreementno query string false "协议编号(模糊匹配)" // @Param agreementname query string false "协议名称(模糊匹配)" // @Success 200 {array} models.QhjNodeAgreementConfig // @Failure 500 {object} app.Response // @Router /QhjSys/QueryNodeAgreementConfig [get] // @Tags 大连千海金(协议和签约信息) func QueryNodeAgreementConfig(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.QhjNodeAgreementConfig{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryCustomerSignStatus // @Summary 查询客户协议签约状态 // @Produce json // @Security ApiKeyAuth // @Param userid query int false "客户ID" // @Param nodetype query int false "环节类型 - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出 99:首次交易" // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]" // @Param tradedate query string false "创建交易日(yyyyMMdd)" // @Param username query string false "用户名称(模糊匹配)" // @Success 200 {array} models.QhjCustomerSignStatus // @Failure 500 {object} app.Response // @Router /QhjSys/QueryCustomerSignStatus [get] // @Tags 大连千海金(协议和签约信息) func QueryCustomerSignStatus(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.QhjCustomerSignStatus{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryQhjCustomerSignLog // @Summary 查询客户协议签约流水 // @Produce json // @Security ApiKeyAuth // @Param logid query int false "流水ID(SEQ_QHJ_CUSTOMERSIGNLOG)" // @Param userid query int false "客户ID" // @Param nodetype query int false "环节类型 - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出" // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]" // @Param agreementid query int false "协议ID" // @Param username query string false "用户名称(模糊匹配)" // @Param agreementno query string false "协议编号(模糊匹配)" // @Param agreementname query string false "协议名称(模糊匹配)" // @Success 200 {array} models.QhjCustomerSignLog // @Failure 500 {object} app.Response // @Router /QhjSys/QueryQhjCustomerSignLog [get] // @Tags 大连千海金(协议和签约信息) func QueryQhjCustomerSignLog(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.QhjCustomerSignLog{} a.DoBindReq(&m) a.DoGetDataI(&m) } // QueryUserNodeCfgAndStatus // @Summary 查询用户协议节点配置和状态 // @Produce json // @Security ApiKeyAuth // @Param userid query int false "客户ID" // @Param configid query int false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)" // @Param nodetype query string false "环节类型(可多个,逗号隔开) - 1:注册 2:登录 3:购买 4:融资购买 5:定投 6:卖出" // @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]" // @Param agreementid query int false "协议ID" // @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易" // @Param agreementversion query int false "协议版本号" // @Param agreementno query string false "协议编号(模糊匹配)" // @Param agreementname query string false "协议名称(模糊匹配)" // @Success 200 {array} models.QhjUserNodeCfgAndStatus // @Failure 500 {object} app.Response // @Router /QhjSys/QueryUserNodeCfgAndStatus [get] // @Tags 大连千海金(协议和签约信息) func QueryUserNodeCfgAndStatus(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.QhjUserNodeCfgAndStatus{} a.DoBindReq(&m) a.DoGetDataI(&m) }