文档
测试

用户注册

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

接口描述

根据用户信息注册用户,线上服务器和端口号

请求参数

参数名
类型
描述
必填
username
String
用户名
必填
password
String
密码
必填
question
String
密保问题
必填
answer
String
密保答案
必填

响应参数

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

成功的返回示例

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

失败的返回示例

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

失败示例2

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

失败案例3

{ "status": 4, "msg": "问题不能为空" }

失败案例4

{ "status": 5, "msg": "答案不能为空" }

失败案例5

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