控制台-部门-搜索

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

控制台-部门-搜索

接口URL

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

请求方式

POST

Content-Type

form-data

请求Query参数

参数示例值是否必填参数描述
cdepartment必填-
asearchDepartment必填-
timestamp1607677497必填-
access_keyabc必填-
sign501ea5d05b1e54224f64c714bbbec49755fe2a62必填-

请求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"
            }
        ]
    }
}
参数示例值参数描述
code200响应状态码
msgsuccess提示信息
data--
data.count9总数据量
data.page1当前页
data.result.id1455226部门ID
data.result.account_id297帐户ID
data.result.parent_id1448669父级部门ID
data.result.ding_id0-
data.result.ding_parent_id0-
data.result.name杭州雅顾科技有限公司帐户名称
data.result.name_pyHangZhouYaGuKeJiYouXianGongSi部门拼音
data.result.name_firsthzygkjyxgs部门名首字母
data.result.order-排序值
data.result.created_at2018-03-19 10:36:02创建时间
data.result.updated_at2018-03-19 10:36:02更新时间
data.result.deleted_at-0001-11-30 00:00:00删除时间