DocumentKeywordDetectRequest.go 1.4 KB

123456789101112131415161718192021222324252627
  1. package document_request
  2. import (
  3. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  4. "os"
  5. )
  6. type DocumentKeywordDetectRequest struct {
  7. // 【签署文档id集合】签署文档id集合 【作用】 指定需检测是否存在关键词的签署文档 【传参】 1、格式:3317076073780658381,3317076073780658382 2、线下文件和签署文档id必传其一,均传入以签署文档id为准
  8. DocumentIds string `json:"documentIds,omitempty"`
  9. // 【线下文件】线下文件 【作用】 上传需检测是否存在关键词的文件 【传参】 1、支持的文件格式:pdf,doc,docx,wps,xls,xlsx,txt,ppt,pptx。 2、线下文件和签署文档id必传其一,均传入以签署文档id为准
  10. Files []*os.File `json:"files,omitempty"`
  11. // 【关键词】关键词 【作用】 传入需检测的关键词数组,检测文件中是否存在 【传参】 单个关键词最大长度:100(包含)。 【特殊说明】 需对关键字数组进行转义后传入
  12. Keywords string `json:"keywords"`
  13. }
  14. func (obj DocumentKeywordDetectRequest) GetUrl() string {
  15. return "/document/keyword/detect"
  16. }
  17. func (obj DocumentKeywordDetectRequest) GetHttpParameter() *http.HttpParameter {
  18. parameter := http.NewPostHttpParameter()
  19. parameter.AddParam("documentIds", obj.DocumentIds)
  20. parameter.AddParam("keywords", obj.Keywords)
  21. parameter.AddListFiles("files", obj.Files)
  22. return parameter
  23. }