控制台-部门-搜索

接口URL

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

请求方式

POST

Content-Type

form-data

请求Query参数

参数 示例值 是否必填 参数描述
c department 必填 -
a searchDepartment 必填 -
timestamp 1607677497 必填 -
access_key abc 必填 -
sign 501ea5d05b1e54224f64c714bbbec49755fe2a62 必填 -

请求Body参数

参数 示例值 是否必填 参数描述
key 部门 必填 关键字
page - 选填 页码
page_size - 选填 一页数据量

成功响应示例

{
    "code": 200,
    "msg": "success",
    "data": {
        "count": 9,
        "page": 1,
        "result": [
            {
                "id": 1455226,
                "account_id": 297,
                "parent_id": 1448669,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "测试部门修改",
                "name_py": "CeShiBuMenXiuGai",
                "name_first": "csbmxg",
                "order": null,
                "created_at": "2020-12-15 14:22:34",
                "updated_at": "2020-12-15 14:36:33",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1455096,
                "account_id": 297,
                "parent_id": 1251236,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "导入部门",
                "name_py": "DaoRuBuMen",
                "name_first": "drbm",
                "order": null,
                "created_at": "2020-12-02 15:55:28",
                "updated_at": "2020-12-02 15:55:28",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1454594,
                "account_id": 297,
                "parent_id": 1251236,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "20人部门",
                "name_py": "20RenBuMen",
                "name_first": "2rbm",
                "order": null,
                "created_at": "2020-11-11 14:35:25",
                "updated_at": "2020-11-13 18:48:17",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1454580,
                "account_id": 297,
                "parent_id": 1454579,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "七级部门",
                "name_py": "QiJiBuMen",
                "name_first": "qjbm",
                "order": null,
                "created_at": "2020-11-10 16:44:44",
                "updated_at": "2020-11-10 16:44:44",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1454579,
                "account_id": 297,
                "parent_id": 1454578,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "六级部门",
                "name_py": "LuJiBuMen",
                "name_first": "ljbm",
                "order": null,
                "created_at": "2020-11-10 16:44:30",
                "updated_at": "2020-11-10 16:44:30",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1454578,
                "account_id": 297,
                "parent_id": 1454577,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "五级部门",
                "name_py": "WuJiBuMen",
                "name_first": "wjbm",
                "order": null,
                "created_at": "2020-11-10 16:42:41",
                "updated_at": "2020-11-10 16:42:41",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1454577,
                "account_id": 297,
                "parent_id": 1454576,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "四级部门",
                "name_py": "SiJiBuMen",
                "name_first": "sjbm",
                "order": null,
                "created_at": "2020-11-10 16:42:23",
                "updated_at": "2020-11-10 16:42:23",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1454576,
                "account_id": 297,
                "parent_id": 1454575,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "三级部门",
                "name_py": "SanJiBuMen",
                "name_first": "sjbm",
                "order": null,
                "created_at": "2020-11-10 16:41:07",
                "updated_at": "2020-11-10 16:41:07",
                "deleted_at": "-0001-11-30 00:00:00"
            },
            {
                "id": 1454575,
                "account_id": 297,
                "parent_id": 1251236,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "二级部门",
                "name_py": "ErJiBuMen",
                "name_first": "ejbm",
                "order": null,
                "created_at": "2020-11-10 16:40:27",
                "updated_at": "2020-11-10 16:40:27",
                "deleted_at": "-0001-11-30 00:00:00"
            }
        ]
    }
}
参数 示例值 参数描述
code 200 响应状态码
msg success 提示信息
data - -
data.count 9 总数据量
data.page 1 当前页
data.result.id 1455226 部门ID
data.result.account_id 297 帐户ID
data.result.parent_id 1448669 父级部门ID
data.result.ding_id 0 -
data.result.ding_parent_id 0 -
data.result.name 杭州雅顾科技有限公司 帐户名称
data.result.name_py HangZhouYaGuKeJiYouXianGongSi 部门拼音
data.result.name_first hzygkjyxgs 部门名首字母
data.result.order - 排序值
data.result.created_at 2018-03-19 10:36:02 创建时间
data.result.updated_at 2018-03-19 10:36:02 更新时间
data.result.deleted_at -0001-11-30 00:00:00 删除时间

results matching ""

    No results matching ""