ktn-go


用户注册

<p><strong>简要描述:</strong></p> <ul> <li>用户注册接口</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>/login/reg</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>是</td> <td>String</td> <td>用户名:邮箱</td> </tr> <tr> <td>password</td> <td>是</td> <td>String</td> <td>密码</td> </tr> <tr> <td>name</td> <td>是</td> <td>String</td> <td>昵称</td> </tr> <tr> <td>sid</td> <td>否</td> <td>String</td> <td>UUID</td> </tr> <tr> <td>code</td> <td>是</td> <td>String</td> <td>验证码</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { "status": 200, "data": { }, "msg":"注册成功" }</code></pre> <p><strong>返回参数说明</strong></p> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>Number</td> <td>200-注册成功,40000-邮件已经被注册,40001-昵称已经被注册,40002-验证码错误</td> </tr> </tbody> </table> <p><strong>备注</strong></p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML