CrossborderV2DocumentCreatebyurlRequest.go 2.8 KB

1234567891011121314151617181920212223242526272829303132
  1. package others_request
  2. import (
  3. "encoding/json"
  4. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  5. "git.sxidc.com/student-physical-examination/contract_lock_sdk/model/common"
  6. )
  7. type CrossborderV2DocumentCreatebyurlRequest struct {
  8. // <ext>core:true</ext> 【本地/网络路径】本地/网络路径 【作用】 通过本地路径或网络路径获取文件进行上传,文件上传后系统将自动将文档转换为PDF格式,方便后续进行签署 【传参】 1、支持的文件格式:pdf,doc,docx,wps,rtf,png,gif,jpg,jpeg,tiff,xls,xlsx,txt,ofd,dwg,ppt,pptx。 2、若上传CAD图纸(dwg格式),请先开启【电子签章管理后台-自定义配置DWG_SWITCH】。 3、当上传的文档为PDF时,PDF的版本需要>1.3;上传签署文档大小限制可在【电子签章管理后台-电子用印设置-文件上传限制】进行配置。 4、本地路径/网络路径和ftp/sftp存储路径必传其一,均传入以本地路径/网络路径为准。 【特殊说明】 若电子签章管理后台配置签署文件仅允许上传指定格式文件,则此参数对应仅允许传入限定格式的本地文件
  9. Url string `json:"url,omitempty"`
  10. FtpUrl *common.FtpUrlRequest `json:"ftpUrl,omitempty"`
  11. // <ext>core:true</ext> 【签署文档名称】签署文档名称 【作用】 用于传入上传的签署文档的名称
  12. Title string `json:"title"`
  13. // <ext>core:true</ext> 【签署文档格式】签署文档格式 【作用】 不同类型的文件转换方式不一样,需要传入类型进行文件转换,传入的类型需要与上传的文件类型一致 【传参】 1、取值范围:pdf,doc,docx,wps,rtf,png,gif,jpg,jpeg,heic,tiff,xls,xlsx,txt,ofd,dwg,ppt,pptx。 2、heic格式只有windows系统支持,需安装imagemagic插件。
  14. FileType string `json:"fileType"`
  15. // 【文件旋转角度】文件旋转角度 【作用】 1、可旋转文档角度,以文档页面中心进行旋转。 2、对于含有电子签名的pdf文件不做处理。 3、正数表示顺时针旋转,负数表示逆时针旋转。 【传参】 取值范围:90 ,180,270,-90,-180,-270。
  16. Angle *int64 `json:"angle,omitempty"`
  17. // 【预览页展示下载按钮】预览页展示下载按钮 【传参】 取值范围:true(展示),false(不展示);不传值默认为:false(不展示)。
  18. ViewDownload string `json:"viewDownload,omitempty"`
  19. }
  20. func (obj CrossborderV2DocumentCreatebyurlRequest) GetUrl() string {
  21. return "/cross-border/v2/document/createbyurl"
  22. }
  23. func (obj CrossborderV2DocumentCreatebyurlRequest) GetHttpParameter() *http.HttpParameter {
  24. parameter := http.NewPostHttpParameter()
  25. jsonBytes, _ := json.Marshal(obj)
  26. parameter.SetJsonParamer(string(jsonBytes))
  27. return parameter
  28. }