文档
测试

普通用户注册

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

接口描述

普通用户注册

请求参数

参数名
类型
描述
必填
u
User
用户
必填
username
String
用户名
必填
password
String
密码
必填
email
String
邮箱
必填
phone
String
电话
可选
question
String
密保问题
必填
answer
String
密保答案
必填

响应参数

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

成功的返回示例

{ "status":0, "msg":"用户注册成功" }

失败的返回示例1

{ "status":1, "msg":"用户已存在" }

失败的返回示例2

{ "status":2, "msg":"邮箱已注册" }

失败的返回示例3

{ "status":100, "msg":"注册信息不能为空" }