用户认证,更换角色
<h5>1.简要描述</h5>
<ul>
<li>管家认证</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>域名+/addons/newbaby_parttime/public/index.php/parttime_api.authentication/create</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>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>姓名</td>
</tr>
<tr>
<td>idnum</td>
<td>是</td>
<td>string</td>
<td>身份证号</td>
</tr>
<tr>
<td>idimg</td>
<td>是</td>
<td>string</td>
<td>身份证正面</td>
</tr>
<tr>
<td>idimgback</td>
<td>是</td>
<td>string</td>
<td>身份证反面</td>
</tr>
<tr>
<td>uid</td>
<td>是</td>
<td>int</td>
<td>用户id</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;time&quot;: 1591149171,
&quot;data&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>
<tr>
<td>token</td>
<td>是</td>
<td>string</td>
<td>token</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;time&quot;: 1591149171,
&quot;data&quot;: {
}</code></pre>
<p>}</p>
<h5>返回参数说明</h5>
<h5>备注</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>is_auth</td>
<td>int</td>
<td>认证状态:0未认证,1审核中,2:已认证,3认证失败</td>
</tr>
<tr>
<td>role_type</td>
<td>int</td>
<td>角色:0管家,1雇主</td>
</tr>
</tbody>
</table>
<h5>3.简要描述</h5>
<ul>
<li>获取用户信息</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>域名+/addons/newbaby_parttime/public/index.php/parttime_api.authentication/getAuth</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>
<tr>
<td>token</td>
<td>是</td>
<td>string</td>
<td>token</td>
</tr>
<tr>
<td>uid</td>
<td>是</td>
<td>int</td>
<td>uid</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;time&quot;: 1591149171,
&quot;data&quot;: {
}</code></pre>
<p>}</p>
<h5>返回参数说明</h5>
<h5>备注</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>is_auth</td>
<td>是</td>
<td>int</td>
<td>认证状态:0未认证,1审核中,2:已认证,3认证失败</td>
</tr>
</tbody>
</table>
<h5>4.简要描述</h5>
<ul>
<li>切换角色</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>域名+/addons/newbaby_parttime/public/index.php/parttime_api.resume/changeRole</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>
<tr>
<td>uid</td>
<td>是</td>
<td>int</td>
<td>uid</td>
</tr>
<tr>
<td>role_type</td>
<td>是</td>
<td>int</td>
<td>角色:0管家,1雇主</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;time&quot;: 1591149171,
&quot;data&quot;: {
}</code></pre>
<p>}</p>
<h5>返回参数说明</h5>
<h5>备注</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>role_type</td>
<td>是</td>
<td>int</td>
<td>认证状态:0未认证,1审核中,2:已认证,3认证失败</td>
</tr>
</tbody>
</table>