[TOC]
接口说明
接口地址
http://xxx.com/login/enroll
请求方式
请求参数
- 请求体
- Content-Type:application/json
参数名 |
类型 |
是否必选 |
说明 |
userName |
String |
√ |
用户名 |
userPwd |
String |
√ |
用户密码 |
userType |
int |
√ |
1:普通用户,2:管理员 |
响应数据
参数名 |
类型 |
说明 |
res |
String |
1:成功,0:失败 |
msg |
String |
提示信息 |
data |
String |
token密钥 |
error |
String |
错误信息 |
count |
String |
数量 |
响应示例
{
"res": 1,
"msg": "注册成功",
"data": null,
"count": 1,
"error": null
}
{
"res": 0,
"msg": "用户已存在",
"data": null,
"count": 0,
"error": null
}
{
"res": 0,
"msg": "服务器异常",
"data": null,
"count": 0,
"error": null
}