- 授权
- 验证码
- GitHub OAuth2
- LinuxDo OAuth2
- 系统API
- 系统Casbin权限
- 系统部门
- 系统字典数据
- 系统字典类型
- 系统角色
- 系统用户
- 登录日志
- 操作日志
- redis监控
- 服务器监控
- 代码生成
- 任务
- 系统数据权限规则
- 系统通知公告
- 系统参数配置
- 系统菜单
- 系统令牌
- 系统上传
- 系统插件
获取部门详情
GET
/api/v1/sys/depts/{pk}
系统部门
最后修改时间:2025-04-16 13:07:52
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
pk
integer
Pk
返回响应
🟢200成功
application/json
Body
code
integer
Code
默认值:
200
msg
string
Msg
默认值:
请求成功
data
object (GetDeptDetail)
部门详情
name
string
Name
parent_id
Parent Id
sort
integer
Sort
>= 0
默认值:
0
leader
Leader
phone
Phone
email
Email
status
enum<integer>
状态
枚举值:
01
id
integer
Id
del_flag
boolean
Del Flag
created_time
string <date-time>
Created Time
updated_time
Updated Time
示例
{
"code": 200,
"msg": "请求成功",
"data": {
"name": "string",
"parent_id": 0,
"sort": 0,
"leader": "string",
"phone": "string",
"email": "user@example.com",
"status": 0,
"id": 0,
"del_flag": true,
"created_time": "2019-08-24T14:15:22Z",
"updated_time": "2019-08-24T14:15:22Z"
}
}
🟠422参数错误