5.8 获取会员信息
5.8 获取会员信息
> - Url路径:api/members
5.8.1 接口请求模型
参数代码 | 参数类型参数类型 | 参数长度 | 代码标识说明 | 是否非空 | 说明 |
---|---|---|---|---|---|
phone | string | 11 | N | 手机号码(必传其一) | |
cardNumber | string | 30 | N | 会员号(必传其一) |
5.8.2 接口返回模型
参数代码 | 参数类型参数类型 | 参数长度 | 代码标识说明 | 是否非空 | 说明 |
---|---|---|---|---|---|
members | List<getMembersModel> | Y | 会员集合 |
getMembersModel
参数代码 | 参数类型参数类型 | 参数长度 | 代码标识说明 | 是否非空 | 说明 |
---|---|---|---|---|---|
oneId | number | 18 | Y | OneID | |
cardNumber | string | 30 | 会员号 | ||
phone | string | 11 | Y | 手机号码 | |
name | string | 10 | 姓名(脱敏,只带性名字用先生/女士代表) | ||
sex | int | 1 | Y | Y | 性别(默认0:男,1:女) |
Demo:
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
}
]
}
}