系统管理 用户管理 - Aladdin-GIS/XiShiGIS GitHub Wiki

1、获得用户表的记录

请求地址: User/GetAll?

请求方式: post

输入:

名称 类型 注释 默认值
start int 起始页 0
limit int 页数 10
order string 排序字段 null
sort string 排序方式 null
search string 过滤条件 null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

2、重置密码

请求地址: Param/ResetPass

请求方式: post

输入:

名称 类型 注释 默认值
U_ID int 用户ID 0
U_PASS string 用户密码 null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

3、添加用户

请求地址: User/Add

请求方式: post

输入:

名称 类型 注释 默认值
U_CODE string 编码 null
U_NAME string 名称 null
U_PASS string 密码 null
U_TRUENAME string 真实姓名 null
U_GENDER string 职位 null
U_ENABLED int 是否启用 null
DEP_ID int 部门ID 0
R_IDS string 角色ID组 0
DEP_NAME string 部门名称 0
U_ID int 用户ID 0
GA_ID int 辖区ID 0
GA_NAME string 辖区名称 西市区

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

4、修改用户

请求地址: User/Modify

请求方式: post

输入:

名称 类型 注释 默认值
U_CODE string 编码 null
U_NAME string 名称 null
U_PASS string 密码 null
U_TRUENAME string 真实姓名 null
U_GENDER string 职位 null
U_ENABLED int 是否启用 null
DEP_ID int 部门ID 0
R_IDS string 角色ID组 0
DEP_NAME string 部门名称 0
U_ID int 用户ID 0
GA_ID int 辖区ID 0
GA_NAME string 辖区名称 西市区

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

5、删除用户

请求地址: Param/Delete?ids=1,2,3,...

请求方式: get

输入:

名称 类型 注释 默认值
ids string 参数项ID字符串组 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

6、根据用户ID获得用户角色

请求地址: Role/GetUserRoleByUid

请求方式: get

输入:

名称 类型 注释 默认值
uid int 用户ID null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

7、获得角色数据

请求地址: Role/GetAll

请求方式: get

输入:

名称 类型 注释 默认值

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

8、获得部门(组织机构)数据

请求地址: Department/GetAllByPID

请求方式: get

输入:

名称 类型 注释 默认值
pid int 部门父ID 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200