EmployeeListRequest.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package employee_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 EmployeeListRequest struct {
  8. DepartmentRequest *common.DepartmentRequest `json:"departmentRequest,omitempty"`
  9. // <ext>core:true</ext> 【是否包含下级组织成员】是否包含下级组织成员 【作用】 是否查询指定组织及下级所有组织的成员 【传参】 1、取值范围:true(包含下级),false(仅当前组织成员);不传值默认为:true(包含下级)。 2、该参数在departmentRequest(查询指定组织下的成员)传值时生效
  10. IncludeChildDepartment *bool `json:"includeChildDepartment,omitempty"`
  11. CompanyRequest *common.CompanyRequest `json:"companyRequest,omitempty"`
  12. // <ext>core:true</ext> 【 认证状态】 认证状态 【传参】 取值范围:0(全部),1(已认证),2(未认证),3(已过期);不传值默认为:0(全部)。
  13. AuthStatus *int64 `json:"authStatus,omitempty"`
  14. // <ext>core:true</ext> 【在职状态】在职状态 【传参】 取值范围:0(全部),1(在职) ,2(离职);不传值默认为:0(全部)。
  15. EmpStatus *int64 `json:"empStatus,omitempty"`
  16. // <ext>core:true</ext> 【账号状态】账号状态 【传参】 取值范围:NULL(全部),NORMAL(正常),DELETE(已注销)。
  17. UserStatus string `json:"userStatus,omitempty"`
  18. // <ext>core:true</ext> 【通过关键字搜索成员】 通过关键字搜索成员 【作用】 支持姓名/手机号/邮箱/编号/账号模糊查询
  19. Keyword string `json:"keyword,omitempty"`
  20. // <ext>core:true</ext> 【查询开始位置】 查询开始位置 【传参】 不传值默认为:0。
  21. SelectOffset *int64 `json:"selectOffset,omitempty"`
  22. // <ext>core:true</ext> 【查询限制条数】 查询限制条数 【传参】 最小值:1(包含),最大值:100(包含);不传值默认为:100。
  23. SelectLimit *int64 `json:"selectLimit,omitempty"`
  24. }
  25. func (obj EmployeeListRequest) GetUrl() string {
  26. return "/employee/list"
  27. }
  28. func (obj EmployeeListRequest) GetHttpParameter() *http.HttpParameter {
  29. parameter := http.NewPostHttpParameter()
  30. jsonBytes, _ := json.Marshal(obj)
  31. parameter.SetJsonParamer(string(jsonBytes))
  32. return parameter
  33. }