文档
测试

部门查询

POST
/api/base/common/selectDepartment

接口描述

根据传入参数,查询不同条件的部门

请求头

参数名
类型
描述
必填
Content-Type
String
application/json
必填
token
string
必填

请求参数

参数名
类型
描述
必填
college_id
string
学院id
必填
search_type
string
搜索类型;0:查询当前登录账户权限的部门;1:查询传入用户查询权限的部门;2:根据核算账户查询;3:查询全部部门
必填
user_id
string
用户id;search_type=1时使用
可选
account_id
string
核算账户id;search_type=2时使用
可选

请求示例

``` { "college_id": "61d77baabc27cbc818fcf8bf9bcc57f8", "search_type": "0", "user_id": "", "account_id": "" } ```

响应参数

参数名
类型
描述
必填
flag
int
返回状态 示例:0
必填
msg
string
返回消息 示例:success
必填
val
array
数据列表
必填
dept_id
string
部门id
必填
dept_name
string
部门名称
必填
no
string
排序序号
必填

返回示例

``` { "flag": 0, "msg": "success", "abid": "", "val": [ { "dept_id": "2", "dept_name": "仙鹤宝", "no": "01" }, { "dept_id": "631279e7a87ec505cc9d73f859e9d7e2", "dept_name": "产品部", "no": "0103" } ] } ```