|
|
@@ -546,6 +546,45 @@ const docTemplate = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/Asign/TestCreateContract": {
|
|
|
+ "post": {
|
|
|
+ "consumes": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "爱签"
|
|
|
+ ],
|
|
|
+ "summary": "上传待签署文件(测试)",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "description": "入参",
|
|
|
+ "name": "data",
|
|
|
+ "in": "body",
|
|
|
+ "required": true,
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/asign.APICreateContractReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/asign.APICreateContractRsp"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "500": {
|
|
|
+ "description": "Internal Server Error",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/app.Response"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"/Asign/TestGetUser": {
|
|
|
"post": {
|
|
|
"consumes": [
|
|
|
@@ -23637,6 +23676,164 @@ const docTemplate = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "asign.APIComponentData": {
|
|
|
+ "type": "object",
|
|
|
+ "required": [
|
|
|
+ "keyword",
|
|
|
+ "type"
|
|
|
+ ],
|
|
|
+ "properties": {
|
|
|
+ "defaultValue": {
|
|
|
+ "description": "当填充类型为勾选(type=3)时填写: Yes:选中 Off:不选中",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "imageByte": {
|
|
|
+ "description": "图片资源",
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "integer"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "keyword": {
|
|
|
+ "description": "参数名称",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "options": {
|
|
|
+ "description": "选项内容",
|
|
|
+ "type": "object",
|
|
|
+ "additionalProperties": true
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "description": "组件类型: 2:单选 3:勾选 9:复选 11:图片",
|
|
|
+ "type": "integer"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "asign.APICreateContractReq": {
|
|
|
+ "type": "object",
|
|
|
+ "required": [
|
|
|
+ "contractName",
|
|
|
+ "contractNo",
|
|
|
+ "signOrder"
|
|
|
+ ],
|
|
|
+ "properties": {
|
|
|
+ "autoContinue": {
|
|
|
+ "description": "当前签署人签署完成自动跳转至下一签署人签署开关(仅对顺序签合同生效): 1 - 开启,0 - 关闭(默认)",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "autoExpand": {
|
|
|
+ "description": "多文件时,是否自动展开文件列表 1 - 展开, 0 - 不展开(默认)",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "callbackUrl": {
|
|
|
+ "description": "合同拒签或过期后(合同状态 status=3/4)回调通知地址,响应【\"ok\"】表示接收回调成功。",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "contractFiles": {
|
|
|
+ "description": "合同附件(与合同模板必传其一)(支持多文件上传)",
|
|
|
+ "type": "array",
|
|
|
+ "items": {}
|
|
|
+ },
|
|
|
+ "contractName": {
|
|
|
+ "description": "合同名称",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "contractNo": {
|
|
|
+ "description": "合同ID,合同唯一编号",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "needAgree": {
|
|
|
+ "description": "同意协议开关:(开启后表示必须同意协议才可签署合同) 1 - 开,0 - 关(默认)",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "notifyUrl": {
|
|
|
+ "description": "合同签署完成后(合同状态 status=2)回调通知地址,响应【\"ok\"】表示接收回调成功。",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "readSeconds": {
|
|
|
+ "description": "强制阅读时间(秒)",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "readType": {
|
|
|
+ "description": "强制阅读设置 1:倒计时读秒方式 2:必须滑动到文件最底部(有多个文件务必逐个阅读) 3:必须点击打开查看(有多个文件务必逐个打开查看)【注】当readType不传值,仅readSeconds传值时,倒计时读秒是针对整体合同(不强制每个文件逐个阅读)。当readType传值1时,readSeconds也传值时,倒计时(要求每个文件逐个阅读)。当readType传值2或3时,readSeconds也传值时,倒计时读秒是针对整体合同(不强制每个文件逐个阅读)。",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "redirectCompletedUrl": {
|
|
|
+ "description": "合同发起页面完成后跳转url 若不为空,可以跳转业务方自己的前端过渡页面,实现业务方自己的逻辑。",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "redirectReturnUrl": {
|
|
|
+ "description": "合同发起页面返回按钮跳转url 若不为空,可以跳转业务方自己的前端页面。",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "redirectUrl": {
|
|
|
+ "description": "合同签署完成后同步回调地址: redirectUrl 若不为空,可以跳转业务方自己的前端过渡页面,实现业务方自己的逻辑。redirectUrl 为空,签署成功后,会回调小程序或app的方法。具体调用方法参考如下。",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "refuseOn": {
|
|
|
+ "description": "合同签署页退回按钮开关: 1 - 开启,0 - 关闭(默认)",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "signOrder": {
|
|
|
+ "description": "签约方式 1:无序签约(默认) 2:顺序签约",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "templates": {
|
|
|
+ "description": "合同模板列表(与合同附件必传其一)",
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/definitions/asign.APITemplate"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "userNotifyUrl": {
|
|
|
+ "description": "某个用户签署完成(用户签署状态 signStatus=2,参考 查询合同信息接口)之后回调地址,响应【\"ok\"】表示接收回调成功。",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "validityDate": {
|
|
|
+ "description": "合同有效截止日期(在此日期之前可以签署合同,格式要求:yyyyMMddHHmmss),【注】与合同有效天数必传其一,【例】传值“20231207190000” 为:2023年12月07日19时00分00秒",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "validityTime": {
|
|
|
+ "description": "合同签署剩余天数(系统当前时间+该天数=在此日期之前可以签署合同日期),【注】与合同有效截止日期必传其一,【例】可传剩余天数:15",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "viewFlg": {
|
|
|
+ "description": "合同签署完是否允许可以通过链接查看合同内容: 1:不允许查看 不传值:可以查看(默认)",
|
|
|
+ "type": "integer"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "asign.APICreateContractRsp": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "contractFiles": {
|
|
|
+ "description": "合同文件信息(文件名称,附件编号,页数)",
|
|
|
+ "type": "array",
|
|
|
+ "items": {}
|
|
|
+ },
|
|
|
+ "previewUrl": {
|
|
|
+ "description": "合同预览链接(预览链接3小时内有效,过期后可通过查询合同信息接口重新获取)",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "asign.APIFillData": {
|
|
|
+ "type": "object",
|
|
|
+ "required": [
|
|
|
+ "dataKey",
|
|
|
+ "value"
|
|
|
+ ],
|
|
|
+ "properties": {
|
|
|
+ "dataKey": {
|
|
|
+ "description": "参数名称",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "value": {
|
|
|
+ "description": "填充值",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"asign.APIGetUserReq": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
@@ -23723,6 +23920,60 @@ const docTemplate = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "asign.APITemplate": {
|
|
|
+ "type": "object",
|
|
|
+ "required": [
|
|
|
+ "templateNo"
|
|
|
+ ],
|
|
|
+ "properties": {
|
|
|
+ "componentData": {
|
|
|
+ "description": "单选、复选、勾选、图片类型参数填充",
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/definitions/asign.APIComponentData"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "contractNo": {
|
|
|
+ "description": "合同编号(此处可传已完成签署的合同编号,实现追加签章的场景)",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "fillData": {
|
|
|
+ "description": "单行文本、多行文本、日期、身份证类型参数填充。",
|
|
|
+ "$ref": "#/definitions/asign.APIFillData"
|
|
|
+ },
|
|
|
+ "tableDatas": {
|
|
|
+ "description": "表格填充数据",
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/definitions/asign.APItableData"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "templateNo": {
|
|
|
+ "description": "合同模板编号",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "asign.APItableData": {
|
|
|
+ "type": "object",
|
|
|
+ "required": [
|
|
|
+ "keyword"
|
|
|
+ ],
|
|
|
+ "properties": {
|
|
|
+ "keyword": {
|
|
|
+ "description": "表名称",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "rowValues": {
|
|
|
+ "description": "表格填充值",
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "object",
|
|
|
+ "additionalProperties": true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"asign.BankCard4Req": {
|
|
|
"type": "object",
|
|
|
"required": [
|