5.8 获取会员信息
<h3>5.8 获取会员信息</h3>
<p>> - Url路径:api/members</p>
<h4>5.8.1 接口请求模型</h4>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型</th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>phone </td>
<td>string </td>
<td>11 </td>
<td> </td>
<td>N </td>
<td>手机号码(必传其一)</td>
</tr>
<tr>
<td>cardNumber</td>
<td>string </td>
<td>30 </td>
<td> </td>
<td>N </td>
<td>会员号(必传其一) </td>
</tr>
</tbody>
</table>
<h4>5.8.2 接口返回模型</h4>
<table>
<thead>
<tr>
<th>参数代码</th>
<th>参数类型参数类型 </th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>members </td>
<td>List<getMembersModel></td>
<td> </td>
<td> </td>
<td>Y </td>
<td>会员集合</td>
</tr>
</tbody>
</table>
<p>getMembersModel </p>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型</th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>oneId </td>
<td>number </td>
<td>18 </td>
<td> </td>
<td>Y </td>
<td>OneID </td>
</tr>
<tr>
<td>cardNumber</td>
<td>string </td>
<td>30 </td>
<td> </td>
<td> </td>
<td>会员号 </td>
</tr>
<tr>
<td>phone </td>
<td>string </td>
<td>11 </td>
<td> </td>
<td>Y </td>
<td>手机号码 </td>
</tr>
<tr>
<td>name </td>
<td>string </td>
<td>10 </td>
<td> </td>
<td> </td>
<td>姓名(脱敏,只带性名字用先生/女士代表)</td>
</tr>
<tr>
<td>sex </td>
<td>int </td>
<td>1 </td>
<td>Y </td>
<td>Y </td>
<td>性别(默认0:男,1:女) </td>
</tr>
</tbody>
</table>
<p>Demo:</p>
<pre><code>Request:
{
&quot;appKey&quot;:&quot;NepHealth&quot;,
&quot;nonce&quot;:&quot;Tdsad2saa2a&quot;,
&quot;timestamp&quot;:1639020753,
&quot;sign&quot;:&quot;a1f8f760de8edfe74b3b7bb9d9c51e4379abfbdb1&quot;,
&quot;input&quot;:{
&quot;phone&quot;:&quot;18025395860&quot;
}
}
Response:
{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;ok&quot;,
&quot;nonce&quot;: &quot;Tdsad2saa2a&quot;,
&quot;output&quot;: {
&quot;members&quot;: [{
&quot;cardNumber&quot;: &quot;1250880008816365&quot;,
&quot;name&quot;: &quot;商城用户&quot;,
&quot;oneId&quot;: 5132274,
&quot;phone&quot;: &quot;18025395860&quot;,
&quot;sex&quot;: 1
},
{
&quot;cardNumber&quot;: &quot;1110008381879&quot;,
&quot;name&quot;: &quot;米蓝&quot;,
&quot;oneId&quot;: 2042517401,
&quot;phone&quot;: &quot;18025395860&quot;,
&quot;sex&quot;: 2
}
]
}
}</code></pre>