V2RoleListRequest.go 1.5 KB

123456789101112131415161718192021222324252627282930
  1. package v2role_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 V2RoleListRequest struct {
  8. // <ext>core:true</ext> 【角色名称】角色名称
  9. Name string `json:"name,omitempty"`
  10. // <ext>core:true</ext> 【角色类型】角色类型 【传参】 取值范围:SYSTEM(系统管理员),SA(印章管理员),TEMPLATE(模板管理员),CATEGORY(用印流程管理员),AUDITOR(审计员),CUSTOM(自定义角色),TEMPLATE_CREATOR(模板创建人),LP(法人),CONTRACT(文件管理员),SECURITY_AUDITOR(安全审计员),SECURITY_SECRET(安全保密员)。
  11. RoleType string `json:"roleType,omitempty"`
  12. Company *common.CompanyRequest `json:"company,omitempty"`
  13. // <ext>core:true</ext> 【查询起始位置】查询起始位置 【传参】 最小值:0(包含);默认值0。
  14. SelectOffset *int64 `json:"selectOffset,omitempty"`
  15. // <ext>core:true</ext> 【查询数量限制】查询数量限制 【传参】 最小值:1(包含);默认值1000。
  16. SelectLimit *int64 `json:"selectLimit,omitempty"`
  17. }
  18. func (obj V2RoleListRequest) GetUrl() string {
  19. return "/v2/role/list"
  20. }
  21. func (obj V2RoleListRequest) GetHttpParameter() *http.HttpParameter {
  22. parameter := http.NewPostHttpParameter()
  23. jsonBytes, _ := json.Marshal(obj)
  24. parameter.SetJsonParamer(string(jsonBytes))
  25. return parameter
  26. }