V2TemplateDownloadRequest.go 949 B

123456789101112131415161718192021222324
  1. package v2template_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 V2TemplateDownloadRequest struct {
  8. // <ext>core:true;format:string</ext> 【模板id】模板id 【作用】 可通过2种方式获取: 1、在电子签章平台找到模板并复制模板ID 2、通过如下接口路径可获取模板ID 1)<docs>/v2/template/group</docs> 2)<docs>/template/list</docs>
  9. TemplateId *int64 `json:"templateId"`
  10. Operator *common.UserInfoRequest `json:"operator,omitempty"`
  11. }
  12. func (obj V2TemplateDownloadRequest) GetUrl() string {
  13. return "/v2/template/download"
  14. }
  15. func (obj V2TemplateDownloadRequest) GetHttpParameter() *http.HttpParameter {
  16. parameter := http.NewPostHttpParameter()
  17. jsonBytes, _ := json.Marshal(obj)
  18. parameter.SetJsonParamer(string(jsonBytes))
  19. return parameter
  20. }