部门模块

一、部门查询列表

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/departments/tree

请求方式 GET

consumes ["application/json"]

produces ["*/*"]

接口描述 ``

请求参数

参数名称参数说明请求类型是否必须数据类型schema
appIdappIdqueryfalsestring 
departmentIds部门id集合queryfalsearraystring
rangeViewFlag范围查看标识queryfalseboolean 
banDeptId需要禁用的部门idqueryfalsestring 
isFindParent是否只查父部门queryfalseboolean 

 

响应状态

状态码说明schema
200OK响应结果对象«List«部门响应数据»»
401Unauthorized 
403Forbidden 
404Not Found 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据array部门响应数据
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

schema属性说明

部门响应数据

参数名称参数说明类型schema
children子节点列表array部门响应数据
description描述string 
disabled禁止选择boolean 
enableReadOrManageFlag可见可管理boolean 
id主键IDstring 
name部门名称string 
parentId父部门idstring 
rootNode是否根节点boolean 

 

响应示例

 

二、创建部门

 

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/departments

请求方式 POST

consumes ["application/json"]

produces ["*/*"]

接口描述 新增一条记录

请求参数

参数名称参数说明请求类型是否必须数据类型schema
bodybodybodytrue部门创建请求体部门创建请求体

 

schema属性说明

部门创建请求体

参数名称参数说明请求类型是否必须数据类型schema
description描述bodyfalsestring 
name部门名称bodyfalsestring 
parentId父部门idbodyfalsestring 

 

 

响应状态

状态码说明schema
200OK响应结果对象«部门响应数据»
201Created 
401Unauthorized 
403Forbidden 
404Not Found 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据部门响应数据部门响应数据
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

schema属性说明

部门响应数据

参数名称参数说明类型schema
children子节点列表array部门响应数据
description描述string 
disabled禁止选择boolean 
enableReadOrManageFlag可见可管理boolean 
id主键IDstring 
name部门名称string 
parentId父部门idstring 
rootNode是否根节点boolean 

 

 

响应示例

三、修改部门

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/departments/{departmentId}

请求方式 PUT

consumes ["application/json"]

produces ["*/*"]

接口描述 修改一条记录

请求参数

参数名称参数说明请求类型是否必须数据类型schema
departmentIddepartmentIdpathtruestring 
bodybodybodytrue部门修改请求体部门修改请求体

 

schema属性说明

部门修改请求体

参数名称参数说明请求类型是否必须数据类型schema
description描述bodyfalsestring 
name部门名称bodyfalsestring 
parentId父部门idbodyfalsestring 

 

响应状态

状态码说明schema
200OK响应结果对象«部门响应数据»
201Created 
401Unauthorized 
403Forbidden 
404Not Found 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据部门响应数据部门响应数据
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

schema属性说明

部门响应数据

参数名称参数说明类型schema
children子节点列表array部门响应数据
description描述string 
disabled禁止选择boolean 
enableReadOrManageFlag可见可管理boolean 
id主键IDstring 
name部门名称string 
parentId父部门idstring 
rootNode是否根节点boolean 

 

响应示例

四、删除部门

接口地址 https://www.yingxiongyun.com/tenant/api/v1/t/departments/{departmentId}

请求方式 DELETE

consumes ["application/json"]

produces ["*/*"]

接口描述 删除一条记录

请求参数

参数名称参数说明请求类型是否必须数据类型schema
departmentIddepartmentIdpathtruestring 

 

响应状态

状态码说明schema
200OK响应结果对象«boolean»
204No Content 
401Unauthorized 
403Forbidden 

 

响应参数

参数名称参数说明类型schema
code结果码integer(int32)integer(int32)
data结果数据boolean 
message结果描述string 
timestamp时间戳integer(int64)integer(int64)

 

响应示例