SealApplyUsedfileDownloadRequest.go 1.7 KB

12345678910111213141516171819202122232425262728
  1. package seal_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 SealApplyUsedfileDownloadRequest struct {
  8. // <ext>core:true;format:string</ext> 【用印申请id】用印申请id 【作用】 查询需下载文档的用印申请
  9. SealApplyId *int64 `json:"sealApplyId"`
  10. // 【下载文件类型】下载文件类型 【作用】 指定需下载的文档类型,下载用印申请中的所有此类型文档 【传参】 1、取值范围:ALL(所有文档),USED_FILE(已用印文档),UPLOAD_FILE(用印文档);不传值默认为:USED_FILE(已用印文档)。 2、当documentId(文档id)传值时,fileType(下载文件类型)不生效,只下载传入的文档id对应的文档。
  11. FileType string `json:"fileType,omitempty"`
  12. // <ext>core:true;format:string</ext> 【文档id】文档id 【作用】 根据文档id查询物理用印文档并下载。支持下载用印申请中的用印文档、已用印文档 【传参】 当documentId(文档id)传值时,fileType(下载文件类型)不生效,只下载传入的文档id对应的文档。
  13. DocumentId *int64 `json:"documentId,omitempty"`
  14. UserInfo *common.UserInfoRequest `json:"userInfo,omitempty"`
  15. }
  16. func (obj SealApplyUsedfileDownloadRequest) GetUrl() string {
  17. return "/seal/apply/usedfile/download"
  18. }
  19. func (obj SealApplyUsedfileDownloadRequest) GetHttpParameter() *http.HttpParameter {
  20. parameter := http.NewPostHttpParameter()
  21. jsonBytes, _ := json.Marshal(obj)
  22. parameter.SetJsonParamer(string(jsonBytes))
  23. return parameter
  24. }