登录注册
<h5>1.简要描述</h5>
<ul>
<li>用户登入</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>域名+/addons/newbaby_parttime/public/index.php/parttime_api.user/login</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>phone</td>
<td>是</td>
<td>string</td>
<td>手机号</td>
</tr>
<tr>
<td>password</td>
<td>是</td>
<td>string</td>
<td>密码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;time&quot;: 1591149171,
&quot;data&quot;: {
&quot;id&quot;: 4,
&quot;mobile&quot;: &quot;17603005414&quot;,
&quot;username&quot;: &quot;&quot;,
&quot;nickname&quot;: &quot;&quot;,
&quot;avatar&quot;: &quot;http://local.laytp.com/static/index/image/default.png&quot;,
&quot;token&quot;: &quot;d32e5210-050d-4902-b4b2-0173da12e191&quot;
}</code></pre>
<p>}</p>
<h5>返回参数说明</h5>
<h5>备注</h5>
<h5>2.简要描述</h5>
<ul>
<li>获取用户信息</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>域名+/addons/newbaby_parttime/public/index.php/parttime_api.user/info</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uniacid</td>
<td>是</td>
<td>int</td>
<td>默认值 1</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {&quot;code&quot;:0,&quot;msg&quot;:&quot;获取成功&quot;,&quot;time&quot;:1683178578,&quot;data&quot;:{&quot;vip_time&quot;:1681284435,&quot;id&quot;:1,&quot;nickname&quot;:&quot;太阳&quot;,&quot;avatar&quot;:&quot;https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/DYAIOgq83eoqN1en430AeiaZHfKialjTInuTEhBrTMwrtricHWV6U2vR084M4Es7cxibzmESJNyjmHIOksMcEr08YA\/132&quot;,&quot;status&quot;:1,&quot;create_time&quot;:&quot;2023-04-07 19:43:44&quot;,&quot;phone&quot;:null,&quot;openid_wechat&quot;:&quot;oKadvw_TvDBMVN_b0vDeaXE-Ak_0&quot;,&quot;openid_miniapp&quot;:null,&quot;coin&quot;:4,&quot;id_number&quot;:&quot;6703524819&quot;,&quot;token&quot;:&quot;d76e2418-e102-d50c-161a-5f1c85cebf0d&quot;}}</code></pre>
<h5>返回参数说明</h5>
<h5>备注</h5>
<h5>3.简要描述</h5>
<ul>
<li>绑定手机号</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>域名+/addons/newbaby_parttime/public/index.php/parttime_api.user/phone_binding</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>phone</td>
<td>是</td>
<td>string</td>
<td>手机号</td>
</tr>
<tr>
<td>code</td>
<td>是</td>
<td>string</td>
<td>验证码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;status&quot;: 1,
&quot;result&quot;: {
&quot;token&quot;: &quot;GRIMVBEOEwxaFk0TWkddXFsGFFgWQFFFbxdGVkNoUG9TBVUCBQMADFMCUn55WxoeEA9ZAF1bVRcKQAQGAQVXB1MEVAYAFh0aEkMFEw8VDVACW1dXUA5TAAYHBQBUD1kHBAJXUQtVAFlaAlUGBQAaHhARVw5AFQoXUgwBB0ZnI2BWdzFGZFMDQkAYQ0NQRk1XQRZpFl1aVRcKUwMFBQJRAFQCUBwRQFRKD2sXUFleXFtGGxRYBwEABU0=&quot;
}
}</code></pre>
<h5>返回参数说明</h5>
<h5>备注</h5>
<h5>4.简要描述</h5>
<ul>
<li>修改用户的昵称和头像</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>域名+/addons/newbaby_parttime/public/index.php/parttime_api.user/profile</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>nickname</td>
<td>是</td>
<td>string</td>
<td>昵称</td>
</tr>
<tr>
<td>avatar</td>
<td>是</td>
<td>string</td>
<td>头像</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;time&quot;: 1591149171,
&quot;data&quot;: {
&quot;id&quot;: 4,
&quot;mobile&quot;: &quot;17603005414&quot;,
&quot;username&quot;: &quot;&quot;,
&quot;nickname&quot;: &quot;&quot;,
&quot;avatar&quot;: &quot;http://local.laytp.com/static/index/image/default.png&quot;,
&quot;token&quot;: &quot;d32e5210-050d-4902-b4b2-0173da12e191&quot;
}</code></pre>
<p>}</p>
<h5>返回参数说明</h5>
<h5>备注</h5>