You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.0 KiB
2.0 KiB
sys-dept-controller
本模块共 2 个接口。源文件:api.json。
快速索引
| 接口名称 | 方法 | 路径 | 用途 |
|---|---|---|---|
| 获取所有厂区级部门列表 | GET | /gd_dataserver/system/dept/factoryList |
返回部门树中第二层(二级)的所有部门,供超级管理员在下拉框中选择厂区。厂区级定义:父节点为根级部门(parentId=0)的部门。 |
| 获取当前用户所属厂区部门 | GET | /gd_dataserver/system/dept/myFactory |
根据当前登录用户的部门信息,向上回溯到厂区级(二级)部门并返回。适用于非超级管理员获取自己所属厂区。返回 data 为 SysDept 对象,包含 deptId、deptName 等字段。 |
接口详情
获取所有厂区级部门列表
- 用途: 返回部门树中第二层(二级)的所有部门,供超级管理员在下拉框中选择厂区。厂区级定义:父节点为根级部门(parentId=0)的部门。
- 请求:
GET /gd_dataserver/system/dept/factoryList - 鉴权:
X-Access-Token(以接口定义为准) - operationId:
factoryListUsingGET
参数:
无
响应:
| 状态码 | 说明 | 响应模型 |
|---|---|---|
| 200 | OK | /: object<string, object> |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
获取当前用户所属厂区部门
- 用途: 根据当前登录用户的部门信息,向上回溯到厂区级(二级)部门并返回。适用于非超级管理员获取自己所属厂区。返回 data 为 SysDept 对象,包含 deptId、deptName 等字段。
- 请求:
GET /gd_dataserver/system/dept/myFactory - 鉴权:
X-Access-Token(以接口定义为准) - operationId:
myFactoryUsingGET
参数:
无
响应:
| 状态码 | 说明 | 响应模型 |
|---|---|---|
| 200 | OK | /: object<string, object> |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |