Register
POST
http://127.0.0.1/register
接口描述
User Register
请求参数
参数名
类型
描述
必填
email
email type string
ex: 123@gmail.com
必填
password
string
ex: 123
必填
nickname
string
ex: user1
必填
响应参数
参数名
类型
描述
必填
code
int
0 means register success; -1 means error, please see "msg" for more info
必填
msg
string
message from server
必填
data
struct
struct of your account if register success; nil if register fail
必填