东农后台api接口文档

接口文档


用户注册

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>用户注册接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Login/register</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">account</td> <td style="text-align: left;">是</td> <td>用户名</td> </tr> <tr> <td style="text-align: left;">password</td> <td style="text-align: left;">是</td> <td>密码</td> </tr> <tr> <td style="text-align: left;">tel</td> <td style="text-align: left;">是</td> <td>电话号</td> </tr> </tbody> </table> <h5>参数示例</h5> <pre><code> {     &amp;quot;account&amp;quot;:&amp;quot;20230106&amp;quot;,     &amp;quot;password&amp;quot; :&amp;quot;123456&amp;quot;,     &amp;quot;tel&amp;quot;:&amp;quot;13265441120&amp;quot; }</code></pre> <h5>返回示例</h5> <pre><code>{     &amp;quot;code&amp;quot;: 0,     &amp;quot;msg&amp;quot;: &amp;quot;注册成功&amp;quot;,     &amp;quot;data&amp;quot;: {         &amp;quot;userId&amp;quot;: &amp;quot;12&amp;quot;, &amp;quot;userName&amp;quot;: &amp;quot;谭老师&amp;quot;,         &amp;quot;typeId&amp;quot;: 0     } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">userId</td> <td>登录用户ID</td> </tr> <tr> <td style="text-align: left;">userName</td> <td>登录用户名称</td> </tr> <tr> <td style="text-align: left;">typeId</td> <td>登录用户类型;0-学生,1-老师</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>测试用例:20231033,20231034</li> </ul>

页面列表

ITEM_HTML