zhou.xiaoning 2 lat temu
rodzic
commit
6ddd69834f

+ 4 - 4
controllers/guangzuan/tradeService.go

@@ -18,8 +18,8 @@ import (
 // @Security Group
 // @Param    userid   query    int    true  "用户ID"
 // @Param    executestatus query    int false "执行状态 - 1:未生效 2:进行中 3:已结束"
-// @Param    page          query    int false "页码"
-// @Param    pagesize      query    int false "每页条数"
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
 // @Success  200           {array}  models.GzcjjcorderM
 // @Failure  500     {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
@@ -39,8 +39,8 @@ func QueryGZCJJCOrder(c *gin.Context) {
 // @Security Group
 // @Param    userid        query    int true  "用户ID"
 // @Param    orderid  query    string false "单据ID"
-// @Param    page     query    int    false "页码"
-// @Param    pagesize query    int    false "每页条数"
+// @Param    page          query    int false "页码"
+// @Param    pagesize      query    int false "每页条数"
 // @Success  200      {array}  models.GzcjjcorderdetailM
 // @Failure  500           {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]

+ 47 - 42
controllers/tencent/qian.go

@@ -26,18 +26,19 @@ type QueryUsereSignRecordsReq struct {
 }
 
 // QueryUsereSignRecords 查询用户电子签记录表
-// @Summary 查询用户电子签记录表
-// @Produce json
-// @accept  application/json
-// @Param   userId           query    int true  "用户ID"
-// @Param   memberUserId     query    int true  "所属会员ID"
-// @Param   recordId         query    int false "记录ID"
-// @Param   templateConfigId query    int false "模板配置ID"
-// @Param   templatetype     query    int false "模板类型 - 1:实名认证 2:开户协议 3:日结算单 4:交易协议"
-// @Success 200              {array}  models.Useresignrecord
-// @Failure 500        {object} app.Response
-// @Router  /Tencent/QueryUsereSignRecords [get]
-// @Tags    腾讯电子签
+// @Summary  查询用户电子签记录表
+// @Produce  json
+// @Security ApiKeyAuth
+// @accept   application/json
+// @Param    userId           query    int true  "用户ID"
+// @Param    memberUserId     query    int true  "所属会员ID"
+// @Param    recordId         query    int false "记录ID"
+// @Param    templateConfigId query    int false "模板配置ID"
+// @Param    templatetype     query    int false "模板类型 - 1:实名认证 2:开户协议 3:日结算单 4:交易协议"
+// @Success  200              {array}  models.Useresignrecord
+// @Failure  500              {object} app.Response
+// @Router   /Tencent/QueryUsereSignRecords [get]
+// @Tags     腾讯电子签
 func QueryUsereSignRecords(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -58,12 +59,12 @@ func QueryUsereSignRecords(c *gin.Context) {
 
 // QianNotice 腾讯电子签回调接口
 // @Summary 腾讯电子签回调接口
-// @Produce json
-// @accept  application/json
-// @Success 200 {object} app.Response
-// @Failure 500  {object} app.Response
+// @Produce  json
+// @accept   application/json
+// @Success  200 {object} app.Response
+// @Failure  500  {object} app.Response
 // @Router  /Tencent/QianNotice [post]
-// @Tags    腾讯电子签
+// @Tags     腾讯电子签
 func QianNotice(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -94,13 +95,14 @@ func QianNotice(c *gin.Context) {
 }
 
 // CreateConsoleLoginUrl 创建电子签控制台登录链接
-// @Summary 创建电子签控制台登录链接
-// @Produce json
-// @accept  application/json
+// @Summary  创建电子签控制台登录链接
+// @Produce  json
+// @Security ApiKeyAuth
+// @accept   application/json
 // @Success 200 {object} app.Response
-// @Failure 500  {object} app.Response
-// @Router  /Tencent/CreateConsoleLoginUrl [post]
-// @Tags    腾讯电子签
+// @Failure  500 {object} app.Response
+// @Router   /Tencent/CreateConsoleLoginUrl [post]
+// @Tags     腾讯电子签
 func CreateConsoleLoginUrl(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -117,13 +119,14 @@ type InitTencentESSReq struct {
 }
 
 // InitTencentESS 按用户ID和机构ID创建腾讯电子签业务信息
-// @Summary 按用户ID和机构ID创建腾讯电子签业务信息
-// @Produce json
-// @accept  application/json
-// @Param   data body     InitTencentESSReq true "入参"
-// @Failure 500 {object} app.Response
-// @Router  /Tencent/InitTencentESS [post]
-// @Tags    腾讯电子签
+// @Summary  按用户ID和机构ID创建腾讯电子签业务信息
+// @Produce  json
+// @Security ApiKeyAuth
+// @accept   application/json
+// @Param    data body     InitTencentESSReq true "入参"
+// @Failure  500  {object} app.Response
+// @Router   /Tencent/InitTencentESS [post]
+// @Tags     腾讯电子签
 func InitTencentESS(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -169,14 +172,15 @@ type CreateFlowByTemplateDirectlyRsp struct {
 }
 
 // CreateFlowByTemplateDirectly 通过合同模板名称直接发起签署流程
-// @Summary 通过合同模板名称直接发起签署流程
-// @accept  application/json
-// @Produce application/json
-// @Param   data body     CreateFlowByTemplateDirectlyReq                    true "入参"
-// @Success 200  {object} app.Response{Data=CreateFlowByTemplateDirectlyRsp} "出参"
+// @Summary  通过合同模板名称直接发起签署流程
+// @Security ApiKeyAuth
+// @accept   application/json
+// @Produce  application/json
+// @Param    data body     CreateFlowByTemplateDirectlyReq                    true "入参"
+// @Success  200  {object} app.Response{Data=CreateFlowByTemplateDirectlyRsp} "出参"
 // @Failure 500 {object} app.Response
-// @Router  /Tencent/CreateFlowByTemplateDirectly [post]
-// @Tags    腾讯电子签
+// @Router   /Tencent/CreateFlowByTemplateDirectly [post]
+// @Tags     腾讯电子签
 func CreateFlowByTemplateDirectly(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -257,13 +261,14 @@ type GetFlowStatusReq struct {
 }
 
 // GetFlowStatus 获取合同状态
-// @Summary 获取合同状态
+// @Summary  获取合同状态
 // @Produce json
+// @Security ApiKeyAuth
 // @accept  application/json
-// @Param   contractno query    string true "合同编号"
-// @Success 200        {object} int    "记录状态 - 1:未签署 2:签署中 3:已签署 4:签署拒绝"
-// @Failure 500              {object} app.Response
-// @Router  /Tencent/GetFlowStatus [get]
+// @Param    contractno query    string true "合同编号"
+// @Success  200        {object} int    "记录状态 - 1:未签署 2:签署中 3:已签署 4:签署拒绝"
+// @Failure  500        {object} app.Response
+// @Router   /Tencent/GetFlowStatus [get]
 // @Tags    腾讯电子签
 func GetFlowStatus(c *gin.Context) {
 	appG := app.Gin{C: c}

+ 25 - 0
docs/docs.go

@@ -17991,6 +17991,11 @@ const docTemplate = `{
         },
         "/Tencent/CreateConsoleLoginUrl": {
             "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18019,6 +18024,11 @@ const docTemplate = `{
         },
         "/Tencent/CreateFlowByTemplateDirectly": {
             "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18070,6 +18080,11 @@ const docTemplate = `{
         },
         "/Tencent/GetFlowStatus": {
             "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18107,6 +18122,11 @@ const docTemplate = `{
         },
         "/Tencent/InitTencentESS": {
             "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18168,6 +18188,11 @@ const docTemplate = `{
         },
         "/Tencent/QueryUsereSignRecords": {
             "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],

+ 25 - 0
docs/swagger.json

@@ -17982,6 +17982,11 @@
         },
         "/Tencent/CreateConsoleLoginUrl": {
             "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18010,6 +18015,11 @@
         },
         "/Tencent/CreateFlowByTemplateDirectly": {
             "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18061,6 +18071,11 @@
         },
         "/Tencent/GetFlowStatus": {
             "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18098,6 +18113,11 @@
         },
         "/Tencent/InitTencentESS": {
             "post": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],
@@ -18159,6 +18179,11 @@
         },
         "/Tencent/QueryUsereSignRecords": {
             "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
                 "consumes": [
                     "application/json"
                 ],

+ 10 - 0
docs/swagger.yaml

@@ -41694,6 +41694,8 @@ paths:
           description: Internal Server Error
           schema:
             $ref: '#/definitions/app.Response'
+      security:
+      - ApiKeyAuth: []
       summary: 创建电子签控制台登录链接
       tags:
       - 腾讯电子签
@@ -41724,6 +41726,8 @@ paths:
           description: Internal Server Error
           schema:
             $ref: '#/definitions/app.Response'
+      security:
+      - ApiKeyAuth: []
       summary: 通过合同模板名称直接发起签署流程
       tags:
       - 腾讯电子签
@@ -41748,6 +41752,8 @@ paths:
           description: Internal Server Error
           schema:
             $ref: '#/definitions/app.Response'
+      security:
+      - ApiKeyAuth: []
       summary: 获取合同状态
       tags:
       - 腾讯电子签
@@ -41769,6 +41775,8 @@ paths:
           description: Internal Server Error
           schema:
             $ref: '#/definitions/app.Response'
+      security:
+      - ApiKeyAuth: []
       summary: 按用户ID和机构ID创建腾讯电子签业务信息
       tags:
       - 腾讯电子签
@@ -41830,6 +41838,8 @@ paths:
           description: Internal Server Error
           schema:
             $ref: '#/definitions/app.Response'
+      security:
+      - ApiKeyAuth: []
       summary: 查询用户电子签记录表
       tags:
       - 腾讯电子签