文档
测试

注册账号

POST
/register

接口描述

通过codeKey和验证码注册账号

请求参数

参数名
类型
描述
必填
username
String
需要注册的账号
必填
password
String
需要注册的密码
必填
codeKey
Long
codeKey
必填
code
String
用户输入的验证码字符串
必填

响应参数

参数名
类型
描述
必填
id
String
标识返回的类型
必填
str
String
对应的文本
必填

说明 / 示例

# 返回参数: ::: hljs-center |参数一|值|参数二|值|描述| |-|-|-|-|-| |id|0|str|注册成功|-| |id|1|str|注册失败,账号已存在|-| |id|2|str|注册失败,验证码不正确|-| |id|3|str|注册失败,账号或密码不符合长度|-| ::: # 注意事项: codeKey有效期为10分钟,十分钟后服务器会移除该codeKey以及对应的图片 账号和密码长度必须大于6且小于16 # 请求示例: ![3.png](https://cos.easydoc.net/44295086/files/k790hk6b.png)