SealApplyUsedFileRequest.go 1.2 KB

123456789101112131415161718192021222324252627
  1. package seal_request
  2. import (
  3. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  4. "os"
  5. )
  6. type SealApplyUsedFileRequest struct {
  7. // <ext>core:true;format:string</ext> 【用印申请id】用印申请id 【作用】 查询需上传已用印文件的用印申请 【特殊说明】 仅限于接口发起的物理用印申请
  8. BusinessId *int64 `json:"businessId"`
  9. // <ext>core:true</ext> 【本地文件】本地文件 【作用】 转换为PDF文件,作为用印后文件 【传参】 支持的文件格式:pdf,doc,docx,wps,rtf,html,htm,xls,xlsx。
  10. File *os.File `json:"file"`
  11. // <ext>core:true</ext> 【文件标题】文件标题 【作用】 1、上传的文件转换为PDF文件后,作为PDF文件的标题 2、该文件在用印申请中展示的标题 【传参】 不超过500字符。
  12. Title string `json:"title"`
  13. }
  14. func (obj SealApplyUsedFileRequest) GetUrl() string {
  15. return "/seal/apply/used/file"
  16. }
  17. func (obj SealApplyUsedFileRequest) GetHttpParameter() *http.HttpParameter {
  18. parameter := http.NewPostHttpParameter()
  19. parameter.AddParam("businessId", obj.BusinessId)
  20. parameter.AddParam("title", obj.Title)
  21. parameter.AddFiles("file", obj.File)
  22. return parameter
  23. }