文档
测试

获取用户列表

GET
http://localhost:8081/user/all.do

接口描述

获取用户列表

请求参数

参数名
类型
描述
必填
username
String
用户名
必填
password
String
密码
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
msg
String
状态信息
必填
data
String
数据
必填

成功的示例

{ "status": 200, "data": [ { "id": 1, "userName": "bianque", "realName": "扁鹊", "useType": null, "constantName": "主任医师", "deptName": "心血管内科", "registerName": "专家号" }, { "id": 2, "userName": "fwb", "realName": "范无病", "useType": null, "constantName": "主治医师", "deptName": "心血管内科", "registerName": "普通号" }, { "id": 3, "userName": "hqb", "realName": "霍去病", "useType": null, "constantName": "主治医师", "deptName": "心血管内科", "registerName": "普通号" }, { "id": 4, "userName": "huatuo", "realName": "华佗", "useType": null, "constantName": "主任医师", "deptName": "神经内科", "registerName": "专家号" }, { "id": 5, "userName": "xll", "realName": "喜来乐", "useType": null, "constantName": "主治医师", "deptName": "神经内科", "registerName": "普通号" }, { "id": 6, "userName": "adq", "realName": "安道全", "useType": null, "constantName": "主治医师", "deptName": "神经内科", "registerName": "普通号" }, { "id": 8, "userName": "dd", "realName": "单独", "useType": null, "constantName": "住院医师", "deptName": "感染内科", "registerName": "普通号" }, { "id": 9, "userName": "root", "realName": "ROOT", "useType": null, "constantName": "主任医师", "deptName": "心血管内科", "registerName": "专家号" }, { "id": 10, "userName": "ghy", "realName": "挂号收费员", "useType": null, "constantName": "主任医师", "deptName": "心血管内科", "registerName": "专家号" }, { "id": 11, "userName": "admin", "realName": "医院管理员", "useType": null, "constantName": "主任医师", "deptName": "心血管内科", "registerName": "专家号" } ] }

失败的示例

当前登录用户没有权限