DocumentValidatefileRequest.go 1.2 KB

123456789101112131415161718192021222324
  1. package document_request
  2. import (
  3. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  4. "os"
  5. )
  6. type DocumentValidatefileRequest struct {
  7. // <ext>core:true</ext> 【待校验文档】待校验文档 【作用】 上传待校验的文档 【传参】 1、支持的文件格式:pdf,doc,docx,wps,rtf,png,gif,jpg,jpeg,tiff,html,htm,xls,xlsx,txt,ofd,dwg,ppt,pptx。 2、若上传CAD图纸(dwg格式),请先开启【电子签章管理后台-自定义配置DWG_SWITCH】。 3、当上传的文档为PDF时,PDF的版本需要>1.3;上传签署文档大小限制可在【电子签章管理后台-电子用印设置-文件上传限制】进行配置。
  8. File *os.File `json:"file"`
  9. // <ext>core:true</ext> 【文档名称】文档名称 【作用】 用于传入上传的文档的名称
  10. Title string `json:"title"`
  11. }
  12. func (obj DocumentValidatefileRequest) GetUrl() string {
  13. return "/document/validateFile"
  14. }
  15. func (obj DocumentValidatefileRequest) GetHttpParameter() *http.HttpParameter {
  16. parameter := http.NewPostHttpParameter()
  17. parameter.AddParam("title", obj.Title)
  18. parameter.AddFiles("file", obj.File)
  19. return parameter
  20. }