|
|
@@ -171,11 +171,11 @@ type APItableData struct {
|
|
|
|
|
|
// APITemplate 合同模板
|
|
|
type APITemplate struct {
|
|
|
- TemplateNo string `json:"templateNo" binding:"required"` // 合同模板编号
|
|
|
- // ContractNo string `json:"contractNo" structs:",omitempty"` // 合同编号(此处可传已完成签署的合同编号,实现追加签章的场景)
|
|
|
- // FillData APIFillData `json:"fillData" structs:",omitempty"` // 单行文本、多行文本、日期、身份证类型参数填充。
|
|
|
- // ComponentData []APIComponentData `json:"componentData" structs:",omitempty"` // 单选、复选、勾选、图片类型参数填充
|
|
|
- // TableDatas []APItableData `json:"tableDatas" structs:",omitempty"` // 表格填充数据
|
|
|
+ TemplateNo string `json:"templateNo" binding:"required"` // 合同模板编号
|
|
|
+ ContractNo string `json:"contractNo" structs:",omitempty"` // 合同编号(此处可传已完成签署的合同编号,实现追加签章的场景)
|
|
|
+ FillData APIFillData `json:"fillData" structs:",omitempty"` // 单行文本、多行文本、日期、身份证类型参数填充。
|
|
|
+ ComponentData []APIComponentData `json:"componentData" structs:",omitempty"` // 单选、复选、勾选、图片类型参数填充
|
|
|
+ TableDatas []APItableData `json:"tableDatas" structs:",omitempty"` // 表格填充数据
|
|
|
}
|
|
|
|
|
|
// APICreateContractReq 上传待签署文件入参
|
|
|
@@ -292,3 +292,20 @@ type APIContractStatusRsp struct {
|
|
|
ContractName string `json:"contractName"` // 合同名称
|
|
|
Status int `json:"status"` // 合同状态:0:等待签约 1:签约中 2:已签约 3:过期 4:拒签 6:作废 -2:状态异常
|
|
|
}
|
|
|
+
|
|
|
+// APIDownloadContractReq 下载合同入参
|
|
|
+type APIDownloadContractReq struct {
|
|
|
+ ContractNo string `json:"contractNo" binding:"required"` // 合同唯一编码
|
|
|
+ Outfile string `json:"outfile"` // 文件本地路径(下载的文件,写到本地,当文件数为1时,下载的文件类型是pdf,否则为zip)
|
|
|
+ Force int `json:"force"` // 强制下载标识 0(默认):未签署完的无法下载 1:无论什么状态都强制下载
|
|
|
+ DownloadFileType int `json:"downloadFileType"` // 下载文件类型,多附件下载:1:PDF文件 2:多个单张PNG文件,含PDF文件,单附件对应单张图片 3:分页PNG压缩文件,含PDF文件 4:合同单张图片,不含PDF文件 5:所有分页图片,不含PDF文件
|
|
|
+}
|
|
|
+
|
|
|
+// APIDownloadContractRsp 下载合同出参
|
|
|
+type APIDownloadContractRsp struct {
|
|
|
+ FileName string `json:"fileName"` // 文件名
|
|
|
+ Md5 string `json:"md5"` // 文件md5值
|
|
|
+ FileType int `json:"fileType"` // 文件类型:0:PDF 1:ZIP
|
|
|
+ Size int `json:"size"` // 文件大小
|
|
|
+ Data string `json:"data"` // Base64字符串
|
|
|
+}
|