|
@@ -1,10 +1,10 @@
|
|
|
package contract_request
|
|
package contract_request
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
- "os"
|
|
|
|
|
- "private-go-sdk/http"
|
|
|
|
|
- "private-go-sdk/model/common"
|
|
|
|
|
"encoding/json"
|
|
"encoding/json"
|
|
|
|
|
+ "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
|
|
|
|
|
+ "git.sxidc.com/student-physical-examination/contract_lock_sdk/model/common"
|
|
|
|
|
+ "os"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
type ContractCreateWithfileuploadRequest struct {
|
|
type ContractCreateWithfileuploadRequest struct {
|
|
@@ -61,100 +61,101 @@ type ContractCreateWithfileuploadRequest struct {
|
|
|
// <ext>inner-type:Json<FileReturnFormat></ext> 【文件签署完成后返回签约文件】文件签署完成后返回签约文件 【作用】 若本次电子签约中所有签署方的全部签署节点,均为自动签署且全部签署完成后,可配置返回签署后的电子签约文件
|
|
// <ext>inner-type:Json<FileReturnFormat></ext> 【文件签署完成后返回签约文件】文件签署完成后返回签约文件 【作用】 若本次电子签约中所有签署方的全部签署节点,均为自动签署且全部签署完成后,可配置返回签署后的电子签约文件
|
|
|
FileReturnFormat string `json:"fileReturnFormat,omitempty"`
|
|
FileReturnFormat string `json:"fileReturnFormat,omitempty"`
|
|
|
// <ext>inner-type:Json<ContractRequest></ext> 【需作废的电子签约文件】需作废的电子签约文件 【作用】 1、用印流程中可设置作废模式为“新签模式”:可使用指定流程发起一份新的电子签约,新文件签署完成后,将原文件状态修改为“已作废” 2、若创建电子签约时传入的用印流程被设置可以作废其他流程下的电子签约文件,此处可传入需作废的原文件信息 3、仅支持传入已完成、强制结束状态的电子签约,未传入时则正常发起新签文件 【传参】 电子签约文件id和第三方业务系统文件id必传其一,均传入以电子签约文件id为准。
|
|
// <ext>inner-type:Json<ContractRequest></ext> 【需作废的电子签约文件】需作废的电子签约文件 【作用】 1、用印流程中可设置作废模式为“新签模式”:可使用指定流程发起一份新的电子签约,新文件签署完成后,将原文件状态修改为“已作废” 2、若创建电子签约时传入的用印流程被设置可以作废其他流程下的电子签约文件,此处可传入需作废的原文件信息 3、仅支持传入已完成、强制结束状态的电子签约,未传入时则正常发起新签文件 【传参】 电子签约文件id和第三方业务系统文件id必传其一,均传入以电子签约文件id为准。
|
|
|
- CancelContractInfo string `json:"cancelContractInfo,omitempty"`
|
|
|
|
|
- CategoryInfoObject *common.CategoryInfo `json:"categoryInfoObject,omitempty"`
|
|
|
|
|
- FileReturnFormatObject *common.FileReturnFormat `json:"fileReturnFormatObject,omitempty"`
|
|
|
|
|
- TransmitterInfoObject []*common.TransmitterInfo `json:"transmitterInfoObject,omitempty"`
|
|
|
|
|
- FillSignatoryInfoObject []*common.WithfileuploadFillSignatory `json:"fillSignatoryInfoObject,omitempty"`
|
|
|
|
|
- SignatoryInfoObject []*common.WithfileuploadSignatory `json:"signatoryInfoObject,omitempty"`
|
|
|
|
|
- SignFileConfigInfoObject []*common.SignFileConfigInfo `json:"signFileConfigInfoObject,omitempty"`
|
|
|
|
|
- CancelContractInfoObject *common.ContractRequest `json:"cancelContractInfoObject,omitempty"`
|
|
|
|
|
- CustomizeFieldInfoObject []*common.CustomizeFieldInfo `json:"customizeFieldInfoObject,omitempty"`
|
|
|
|
|
- ContractControlObject *common.OpenContractControlBean `json:"contractControlObject,omitempty"`
|
|
|
|
|
- CreatorInfoObject *common.UserInfoRequest `json:"creatorInfoObject,omitempty"`
|
|
|
|
|
|
|
+ CancelContractInfo string `json:"cancelContractInfo,omitempty"`
|
|
|
|
|
+ CategoryInfoObject *common.CategoryInfo `json:"categoryInfoObject,omitempty"`
|
|
|
|
|
+ FileReturnFormatObject *common.FileReturnFormat `json:"fileReturnFormatObject,omitempty"`
|
|
|
|
|
+ TransmitterInfoObject []*common.TransmitterInfo `json:"transmitterInfoObject,omitempty"`
|
|
|
|
|
+ FillSignatoryInfoObject []*common.WithfileuploadFillSignatory `json:"fillSignatoryInfoObject,omitempty"`
|
|
|
|
|
+ SignatoryInfoObject []*common.WithfileuploadSignatory `json:"signatoryInfoObject,omitempty"`
|
|
|
|
|
+ SignFileConfigInfoObject []*common.SignFileConfigInfo `json:"signFileConfigInfoObject,omitempty"`
|
|
|
|
|
+ CancelContractInfoObject *common.ContractRequest `json:"cancelContractInfoObject,omitempty"`
|
|
|
|
|
+ CustomizeFieldInfoObject []*common.CustomizeFieldInfo `json:"customizeFieldInfoObject,omitempty"`
|
|
|
|
|
+ ContractControlObject *common.OpenContractControlBean `json:"contractControlObject,omitempty"`
|
|
|
|
|
+ CreatorInfoObject *common.UserInfoRequest `json:"creatorInfoObject,omitempty"`
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
func (obj ContractCreateWithfileuploadRequest) GetUrl() string {
|
|
func (obj ContractCreateWithfileuploadRequest) GetUrl() string {
|
|
|
- return "/contract/create/withfileupload"
|
|
|
|
|
|
|
+ return "/contract/create/withfileupload"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (obj ContractCreateWithfileuploadRequest) GetHttpParameter() *http.HttpParameter {
|
|
func (obj ContractCreateWithfileuploadRequest) GetHttpParameter() *http.HttpParameter {
|
|
|
- parameter := http.NewPostHttpParameter()
|
|
|
|
|
- parameter.AddParam("needCategory", obj.NeedCategory)
|
|
|
|
|
- parameter.AddParam("subject", obj.Subject)
|
|
|
|
|
- parameter.AddParam("send", obj.Send)
|
|
|
|
|
- parameter.AddParam("sn", obj.Sn)
|
|
|
|
|
- parameter.AddParam("sendTimeStr", obj.SendTimeStr)
|
|
|
|
|
- parameter.AddParam("bizId", obj.BizId)
|
|
|
|
|
- parameter.AddParam("businessData", obj.BusinessData)
|
|
|
|
|
- parameter.AddParam("description", obj.Description)
|
|
|
|
|
- parameter.AddParam("tenantName", obj.TenantName)
|
|
|
|
|
- parameter.AddParam("signFileType", obj.SignFileType)
|
|
|
|
|
- parameter.AddParam("urls", obj.Urls)
|
|
|
|
|
- parameter.AddParam("expireTime", obj.ExpireTime)
|
|
|
|
|
- parameter.AddParam("endTime", obj.EndTime)
|
|
|
|
|
- parameter.AddParam("contractPublicTag", obj.ContractPublicTag)
|
|
|
|
|
- parameter.AddParam("documentFormats", obj.DocumentFormats)
|
|
|
|
|
- parameter.AddParam("msgCode", obj.MsgCode)
|
|
|
|
|
- parameter.AddListFiles("signFiles", obj.SignFiles)
|
|
|
|
|
- if obj.ContractControlObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.ContractControlObject)
|
|
|
|
|
- parameter.AddParam("contractControl", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("contractControl", obj.ContractControl)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.SignFileConfigInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.SignFileConfigInfoObject)
|
|
|
|
|
- parameter.AddParam("signFileConfigInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("signFileConfigInfo", obj.SignFileConfigInfo)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.TransmitterInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.TransmitterInfoObject)
|
|
|
|
|
- parameter.AddParam("transmitterInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("transmitterInfo", obj.TransmitterInfo)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.FileReturnFormatObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.FileReturnFormatObject)
|
|
|
|
|
- parameter.AddParam("fileReturnFormat", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("fileReturnFormat", obj.FileReturnFormat)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.CreatorInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.CreatorInfoObject)
|
|
|
|
|
- parameter.AddParam("creatorInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("creatorInfo", obj.CreatorInfo)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.CustomizeFieldInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.CustomizeFieldInfoObject)
|
|
|
|
|
- parameter.AddParam("customizeFieldInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("customizeFieldInfo", obj.CustomizeFieldInfo)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.FillSignatoryInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.FillSignatoryInfoObject)
|
|
|
|
|
- parameter.AddParam("fillSignatoryInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("fillSignatoryInfo", obj.FillSignatoryInfo)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.CancelContractInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.CancelContractInfoObject)
|
|
|
|
|
- parameter.AddParam("cancelContractInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("cancelContractInfo", obj.CancelContractInfo)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.SignatoryInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.SignatoryInfoObject)
|
|
|
|
|
- parameter.AddParam("signatoryInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("signatoryInfo", obj.SignatoryInfo)
|
|
|
|
|
- }
|
|
|
|
|
- if obj.CategoryInfoObject != nil {
|
|
|
|
|
- jsonBytes, _ := json.Marshal(obj.CategoryInfoObject)
|
|
|
|
|
- parameter.AddParam("categoryInfo", string(jsonBytes))
|
|
|
|
|
- } else {
|
|
|
|
|
- parameter.AddParam("categoryInfo", obj.CategoryInfo)
|
|
|
|
|
- }
|
|
|
|
|
- return parameter
|
|
|
|
|
|
|
+ parameter := http.NewPostHttpParameter()
|
|
|
|
|
+ parameter.AddParam("needCategory", obj.NeedCategory)
|
|
|
|
|
+ parameter.AddParam("subject", obj.Subject)
|
|
|
|
|
+ parameter.AddParam("send", obj.Send)
|
|
|
|
|
+ parameter.AddParam("sn", obj.Sn)
|
|
|
|
|
+ parameter.AddParam("sendTimeStr", obj.SendTimeStr)
|
|
|
|
|
+ parameter.AddParam("bizId", obj.BizId)
|
|
|
|
|
+ parameter.AddParam("businessData", obj.BusinessData)
|
|
|
|
|
+ parameter.AddParam("description", obj.Description)
|
|
|
|
|
+ parameter.AddParam("tenantName", obj.TenantName)
|
|
|
|
|
+ parameter.AddParam("signFileType", obj.SignFileType)
|
|
|
|
|
+ parameter.AddParam("urls", obj.Urls)
|
|
|
|
|
+ parameter.AddParam("expireTime", obj.ExpireTime)
|
|
|
|
|
+ parameter.AddParam("endTime", obj.EndTime)
|
|
|
|
|
+ parameter.AddParam("contractPublicTag", obj.ContractPublicTag)
|
|
|
|
|
+ parameter.AddParam("documentFormats", obj.DocumentFormats)
|
|
|
|
|
+ parameter.AddParam("msgCode", obj.MsgCode)
|
|
|
|
|
+ parameter.AddListFiles("signFiles", obj.SignFiles)
|
|
|
|
|
+ if obj.ContractControlObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.ContractControlObject)
|
|
|
|
|
+ parameter.AddParam("contractControl", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("contractControl", obj.ContractControl)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.SignFileConfigInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.SignFileConfigInfoObject)
|
|
|
|
|
+ parameter.AddParam("signFileConfigInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("signFileConfigInfo", obj.SignFileConfigInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.TransmitterInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.TransmitterInfoObject)
|
|
|
|
|
+ parameter.AddParam("transmitterInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("transmitterInfo", obj.TransmitterInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.FileReturnFormatObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.FileReturnFormatObject)
|
|
|
|
|
+ parameter.AddParam("fileReturnFormat", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("fileReturnFormat", obj.FileReturnFormat)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.CreatorInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.CreatorInfoObject)
|
|
|
|
|
+ parameter.AddParam("creatorInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("creatorInfo", obj.CreatorInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.CustomizeFieldInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.CustomizeFieldInfoObject)
|
|
|
|
|
+ parameter.AddParam("customizeFieldInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("customizeFieldInfo", obj.CustomizeFieldInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.FillSignatoryInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.FillSignatoryInfoObject)
|
|
|
|
|
+ parameter.AddParam("fillSignatoryInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("fillSignatoryInfo", obj.FillSignatoryInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.CancelContractInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.CancelContractInfoObject)
|
|
|
|
|
+ parameter.AddParam("cancelContractInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("cancelContractInfo", obj.CancelContractInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.SignatoryInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.SignatoryInfoObject)
|
|
|
|
|
+ parameter.AddParam("signatoryInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("signatoryInfo", obj.SignatoryInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ if obj.CategoryInfoObject != nil {
|
|
|
|
|
+ jsonBytes, _ := json.Marshal(obj.CategoryInfoObject)
|
|
|
|
|
+ parameter.AddParam("categoryInfo", string(jsonBytes))
|
|
|
|
|
+ } else {
|
|
|
|
|
+ parameter.AddParam("categoryInfo", obj.CategoryInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ return parameter
|
|
|
}
|
|
}
|