部门字典

简要描述
  • 获取部门字典接口
请求URL
  • /api/dept/tree
请求方式
  • GET
参数
参数名 必选 类型 说明
返回示例
{
    "code": 200,
    "msg": "默认",
    "success": true,
    "data": [{
        "createTime": null,
        "createBy": null,
        "createName": null,
        "updateTime": null,
        "updateBy": null,
        "updateName": null,
        "remark": null,
        "params": null,
        "deptId": "1425378464092913664",
        "deptName": "一物",
        "address": "",
        "parentId": "0",
        "leader": "admin",
        "phone": "",
        "email": "",
        "status": "0",
        "sort": 1
    }, {
        "createTime": null,
        "createBy": null,
        "createName": null,
        "updateTime": null,
        "updateBy": null,
        "updateName": null,
        "remark": null,
        "params": null,
        "deptId": "1425378912803749888",
        "deptName": "供应商",
        "address": "供应商",
        "parentId": "0",
        "leader": "",
        "phone": "",
        "email": "",
        "status": "0",
        "sort": 2
    }, {
        "createTime": null,
        "createBy": null,
        "createName": null,
        "updateTime": null,
        "updateBy": null,
        "updateName": null,
        "remark": null,
        "params": null,
        "deptId": "1425379065468026880",
        "deptName": "银行分行",
        "address": "供应商",
        "parentId": "0",
        "leader": "",
        "phone": "",
        "email": "",
        "status": "0",
        "sort": 3
    }, {
        "createTime": null,
        "createBy": null,
        "createName": null,
        "updateTime": null,
        "updateBy": null,
        "updateName": null,
        "remark": null,
        "params": null,
        "deptId": "1425619011495788544",
        "deptName": "讲师",
        "address": "",
        "parentId": "1425378912803749888",
        "leader": "",
        "phone": "",
        "email": "",
        "status": "0",
        "sort": null
    }, {
        "createTime": null,
        "createBy": null,
        "createName": null,
        "updateTime": null,
        "updateBy": null,
        "updateName": null,
        "remark": null,
        "params": null,
        "deptId": "1425619113987801088",
        "deptName": "银行支行",
        "address": "",
        "parentId": "1425379065468026880",
        "leader": "",
        "phone": "",
        "email": "",
        "status": "0",
        "sort": null
    }]
}
返回参数说明
参数名 类型 说明
deptId String 部门ID
deptName String 部门名称
parentId String 上一级