SealcategoryCreateRequest.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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 SealcategoryCreateRequest struct {
  8. // <ext>core:true;format:string</ext> 【集团id】集团id 【作用】 指定当前类型所属集团 【传参】 集团id、单位信息、组织信息都可用于指定印章类型的所属集团;均传入时只按最高优先级查询,优先级为集团id>法人单位信息>组织信息;都不传时,默认创建在平台方集团内。
  9. OrgId *int64 `json:"orgId,omitempty"`
  10. Company *common.CompanyRequest `json:"company,omitempty"`
  11. Department *common.DepartmentRequest `json:"department,omitempty"`
  12. // <ext>core:true</ext> 【印章类型名称】印章类型名称 【传参】 最大长度:50(包含)
  13. SealCategoryName string `json:"sealCategoryName"`
  14. // <ext>core:true</ext> 【上级印章类型名称】上级印章类型名称 【作用】 若印章类型之间存在层级关系,可通过此参数设置上级类型 【传参】 最大长度:50(包含)
  15. ParentSealCategoryName string `json:"parentSealCategoryName,omitempty"`
  16. // <ext>core:true</ext> 【可用印章形式】可用印章形式 【作用】 指定该印章类型可用于哪些形式的印章 【传参】 取值范围:ELECTRONIC(电子印章),PHYSICS(物理印章),UKEY(Ukey印章),MOBILE(移动印章);不传值默认为全部
  17. ApplyScope []string `json:"applyScope,omitempty"`
  18. // <ext>core:true</ext> 【初始状态】初始状态 【传参】 取值范围:NORMAL(启用),FREEZE(停用);不传值默认为:NORMAL(启用)。
  19. Status string `json:"status,omitempty"`
  20. // <ext>core:true</ext> 【允许创建多个印章的印章形式】允许创建多个印章的印章形式 【作用】 1、指定哪些印章形式下,此类型的印章可创建多枚 2、若不允许创建多枚,则每个法人单位下,此类型的印章只能生效一枚 【传参】 取值范围:ELECTRONIC(电子印章),PHYSICS(物理印章),UKEY(Ukey印章),MOBILE(移动印章);传值需在applyScope(可用印章形式)的范围内;不传值默认为空
  21. AllowMultiple []string `json:"allowMultiple,omitempty"`
  22. }
  23. func (obj SealcategoryCreateRequest) GetUrl() string {
  24. return "/sealcategory/create"
  25. }
  26. func (obj SealcategoryCreateRequest) GetHttpParameter() *http.HttpParameter {
  27. parameter := http.NewPostHttpParameter()
  28. jsonBytes, _ := json.Marshal(obj)
  29. parameter.SetJsonParamer(string(jsonBytes))
  30. return parameter
  31. }