系统管理 组织机构管理 - Aladdin-GIS/XiShiGIS GitHub Wiki
1、获得部门(组织机构)数据
请求地址: Department/GetAllByPID
请求方式: get
输入:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
pid | int | 部门父ID | 0 |
输出:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
total | int | 记录总数 | |
rows | object | 数据 | |
msg | string | 信息 | |
success | bool | 成功/失败 | |
code | int | 代码 | 200 |
2、添加部门
请求地址: Department/Add
请求方式: post
输入:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
DEP_CODE | string | 编码 | null |
DEP_NAME | string | 名称 | null |
DEP_REMARK | string | 备注 | null |
DEP_PID | string | 上级ID | null |
DEP_PNAME | string | 上级名称 | null |
DEP_ID | int | 部门ID | null |
输出:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
total | int | 记录总数 | |
rows | object | 数据 | |
msg | string | 信息 | |
success | bool | 成功/失败 | |
code | int | 代码 | 200 |
3、修改部门
请求地址: Department/Modify
请求方式: post
输入:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
DEP_CODE | string | 编码 | null |
DEP_NAME | string | 名称 | null |
DEP_REMARK | string | 备注 | null |
DEP_PID | string | 上级ID | null |
DEP_PNAME | string | 上级名称 | null |
DEP_ID | int | 部门ID | null |
输出:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
total | int | 记录总数 | |
rows | object | 数据 | |
msg | string | 信息 | |
success | bool | 成功/失败 | |
code | int | 代码 | 200 |
4、删除用户
请求地址: Department/Delete?ids=1,2,3,...
请求方式: get
输入:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
ids | string | 部门ID字符串组 | 0 |
输出:
名称 | 类型 | 注释 | 默认值 |
---|---|---|---|
total | int | 记录总数 | |
rows | object | 数据 | |
msg | string | 信息 | |
success | bool | 成功/失败 | |
code | int | 代码 | 200 |