简要描述
请求URL
http://localhost:8081/user/register
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
email |
是 |
string |
邮箱地址 |
username |
是 |
string |
用户名 |
password |
是 |
string |
密码 |
请求示例{
"email": "127854@163.com",
"username": "admin"
"password": "1564sfad"
}
返回示例
注册成功返回示例{
"code": 0,
"massage": "成功",
data:null
}
依据错误类型:
注册失败返回示例{
"code":602
"massage":"用户名已被占用"
data :null
}
或
{
"code":603
"massage":"邮箱错误"
data :null
}
{
"code":604
"massage":"密码格式不符合要求"
data :null
}
{
"code":900
"massage":"未知错误"
data :null
}
返回参数说明
参数名 |
类型 |
说明 |
result |
Result |
将响应码返回 |
备注