Skip to content

部门

搜索部门

GET /org/search

权限

  • 需要认证

请求参数

名称位置类型必选说明
namequerystringfalse部门名称

响应

json
{
  "data": [
    {
      "id": "3",
      "name": "1234",
      "parentId": "1",
      "childrenNum": "1",
      "depth": "2",
      "seq": "0",
      "description": null,
      "code": "JXEQ",
      "orgCode": "1.3.",
      "createdUserId": "2",
      "createdTime": "1644914071",
      "updateTime": "1644914144",
      "syncId": "0",
      "fullName": "1234"
    },
    {
      "id": "2",
      "name": "123",
      "parentId": "1",
      "childrenNum": "0",
      "depth": "2",
      "seq": "1",
      "description": null,
      "code": "YJY",
      "orgCode": "1.2.",
      "createdUserId": "2",
      "createdTime": "1644914071",
      "updateTime": "1644914144",
      "syncId": "0",
      "fullName": "123"
    },
    {
      "id": "4",
      "name": "1234",
      "parentId": "3",
      "childrenNum": "0",
      "depth": "3",
      "seq": "0",
      "description": null,
      "code": "PMHL",
      "orgCode": "1.3.4.",
      "createdUserId": "2",
      "createdTime": "1644919061",
      "updateTime": "1644919061",
      "syncId": "0",
      "fullName": "1234-1234"
    },
    {
      "id": "6",
      "name": "111111",
      "parentId": "5",
      "childrenNum": "0",
      "depth": "3",
      "seq": "0",
      "description": null,
      "code": "BTSMKB",
      "orgCode": "1.5.6.",
      "createdUserId": "2",
      "createdTime": "1645003086",
      "updateTime": "1645003086",
      "syncId": "0",
      "fullName": "55555-111111"
    }
  ],
  "paging": {
    "total": 4,
    "offset": 0,
    "limit": 10
  }
}

字段说明

名称类型必选约束说明
» idinteger(int64)falsenonenone
» namestringfalsenone名称
» fullNamestringfalsenone包含上级部门名称(除顶级)