文档
测试

获得用户所有信息

POST
http://localhost:8080/portal/user/getall.do

请求参数

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

响应参数

参数名
类型
描述
必填
status
Integer
状态码
可选
data
T
数据
可选
id
Integer
用户编号
必填
username
String
登录成功用户名
必填
email
String
邮箱
必填
phone
String
手机号
必填
updateTime
Date
更新时间
必填
createTime
Date
创建时间
必填
msg
String
状态信息
可选

成功的返回示例

{ "status":200, "data":{ "id":12, "username":"aaa", "email":"aaa@126.com", "phone":null, "createTime":1222, "updateTime":1222 } }

失败的返回示例

{ "status": 100, "msg": "用户名不能为空" }

失败返回示例2

{ "status": 101, "msg": "用户名不存在" }

失败返回示例3

{ "status": 100, "msg": "密码不能为空" }

失败返回示例4

{ "status":1, "msg":"密码错误" }