控制台-部门-列表
优质
小牛编辑
128浏览
2023-12-01
控制台-部门-列表
接口URL
{youke-url}/console/Index.php?c=department&a=list×tamp=1607677497&access_key=abc&sign=c7da8103312da8793af4f526a42cb6ebaa06cfd4
请求方式
POST
Content-Type
form-data
请求Query参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
c | department | 必填 | - |
a | list | 必填 | - |
timestamp | 1607677497 | 必填 | - |
access_key | abc | 必填 | - |
sign | c7da8103312da8793af4f526a42cb6ebaa06cfd4 | 必填 | - |
成功响应示例
{
"code": 200,
"msg": "success",
"data": [
{
"id": 1334389,
"account_id": 297,
"parent_id": -2,
"ding_id": 0,
"ding_parent_id": 0,
"name": "weilin",
"name_py": "Weilin",
"name_first": "w",
"order": null,
"created_at": "2018-04-09 14:06:14",
"updated_at": "2018-04-09 14:06:14",
"deleted_at": "-0001-11-30 00:00:00"
},
{
"id": 1251236,
"account_id": 297,
"parent_id": -1,
"ding_id": 0,
"ding_parent_id": 0,
"name": "杭州雅顾科技有限公司",
"name_py": "HangZhouYaGuKeJiYouXianGongSi",
"name_first": "hzygkjyxgs",
"order": null,
"created_at": "2018-03-19 10:36:02",
"updated_at": "2018-03-19 10:36:02",
"deleted_at": "-0001-11-30 00:00:00"
},
{
"id": 1448576,
"account_id": 297,
"parent_id": 1251236,
"ding_id": 0,
"ding_parent_id": 0,
"name": "1",
"name_py": "1",
"name_first": "1",
"order": null,
"created_at": "2020-09-25 11:07:55",
"updated_at": "2020-09-25 11:07:55",
"deleted_at": "-0001-11-30 00:00:00"
},
{
"id": 1448585,
"account_id": 297,
"parent_id": 1251236,
"ding_id": 0,
"ding_parent_id": 0,
"name": "11",
"name_py": "11",
"name_first": "1",
"order": null,
"created_at": "2020-09-25 11:12:35",
"updated_at": "2020-09-25 11:12:35",
"deleted_at": "-0001-11-30 00:00:00"
},
{
"id": 1448586,
"account_id": 297,
"parent_id": 1251236,
"ding_id": 0,
"ding_parent_id": 0,
"name": "12",
"name_py": "12",
"name_first": "1",
"order": null,
"created_at": "2020-09-25 11:12:38",
"updated_at": "2020-09-25 11:12:38",
"deleted_at": "-0001-11-30 00:00:00"
},
{
"id": 1448587,
"account_id": 297,
"parent_id": 1251236,
"ding_id": 0,
"ding_parent_id": 0,
"name": "13",
"name_py": "13",
"name_first": "1",
"order": null,
"created_at": "2020-09-25 11:16:55",
"updated_at": "2020-09-25 11:16:55",
"deleted_at": "-0001-11-30 00:00:00"
}
]
}
参数 | 示例值 | 参数描述 |
---|---|---|
code | 200 | 响应状态码 |
msg | success | 提示信息 |
data | - | json array |
data.*.id | 1251236 | 部门ID |
data.*.account_id | 297 | 帐户ID |
data.*.parent_id | -1 | 父级部门ID |
data.*.ding_id | 0 | - |
data.*.ding_parent_id | 0 | - |
data.*.name | 杭州雅顾科技有限公司 | 帐户名称 |
data.*.name_py | HangZhouYaGuKeJiYouXianGongSi | 部门拼音 |
data.*.name_first | hzygkjyxgs | 部门名首字母 |
data.*.order | - | 排序值 |
data.*.created_at | 2018-03-19 10:36:02 | 创建时间 |
data.*.updated_at | 2018-03-19 10:36:02 | 更新时间 |
data.*.deleted_at | -0001-11-30 00:00:00 | 删除时间 |
data.*.audiences_count | 15 | 部门学员数 |
data.*.has_sub | 1 | 是否有子部门 1是0否 |