public class DepartmentService extends Object
| Constructor and Description |
|---|
DepartmentService(UnifiAuthClient unifiAuthClient) |
| Modifier and Type | Method and Description |
|---|---|
DepartmentDetail |
queryDept(String token,
long id)
根据ID查询部门详情
|
List<DepartmentDetail> |
queryDeptTree(String token)
获取部门树
|
List<DepartmentDetail> |
queryDeptTree(String token,
long id)
查询指定部门的子级部门树
|
ListData<UserDetail> |
queryDeptUserList(String token,
long id,
int pages,
int rows)
查询指定部门下的用户列表
|
public DepartmentService(UnifiAuthClient unifiAuthClient)
public List<DepartmentDetail> queryDeptTree(String token) throws Exception
token - Exceptionpublic List<DepartmentDetail> queryDeptTree(String token, long id) throws Exception
token - id - Exceptionpublic ListData<UserDetail> queryDeptUserList(String token, long id, int pages, int rows) throws Exception
token - AccessTokenid - 部门IDpages - 页码rows - 每页容量Exceptionpublic DepartmentDetail queryDept(String token, long id) throws Exception
token - id - ExceptionCopyright © 2023–2024. All rights reserved.