控制台-部门-列表

优质
小牛编辑
128浏览
2023-12-01

控制台-部门-列表

接口URL

{youke-url}/console/Index.php?c=department&a=list&timestamp=1607677497&access_key=abc&sign=c7da8103312da8793af4f526a42cb6ebaa06cfd4

请求方式

POST

Content-Type

form-data

请求Query参数

参数示例值是否必填参数描述
cdepartment必填-
alist必填-
timestamp1607677497必填-
access_keyabc必填-
signc7da8103312da8793af4f526a42cb6ebaa06cfd4必填-

成功响应示例

{
    "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"
        }
    ]
}
参数示例值参数描述
code200响应状态码
msgsuccess提示信息
data-json array
data.*.id1251236部门ID
data.*.account_id297帐户ID
data.*.parent_id-1父级部门ID
data.*.ding_id0-
data.*.ding_parent_id0-
data.*.name杭州雅顾科技有限公司帐户名称
data.*.name_pyHangZhouYaGuKeJiYouXianGongSi部门拼音
data.*.name_firsthzygkjyxgs部门名首字母
data.*.order-排序值
data.*.created_at2018-03-19 10:36:02创建时间
data.*.updated_at2018-03-19 10:36:02更新时间
data.*.deleted_at-0001-11-30 00:00:00删除时间
data.*.audiences_count15部门学员数
data.*.has_sub1是否有子部门 1是0否