membercard - 会员卡相关接口
- api/member/membercard/getcreateorder GET 获取会员批量开卡单
- api/member/membercard/getcreateorderlist GET 门店 获取会员批量开卡单列表
- api/member/membercard/batchcreate POST 门店 新建会员批量开卡单
- api/member/membercard/writecard POST 写卡
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 单号 |
| createCount | int | 开卡数量 |
| createTime | date | 创建时间 |
| currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| endCode | string | 结束卡号 |
| expectCount | int | 预期数量 |
| id | int | |
| isFinished | boolean | 是否完成 |
| memberCardClassId | int | 会员卡类别Id |
| memberCardClassName | string | 会员卡类别 |
| shopId | int | 门店Id |
| shopName | string | 门店名称 |
| startCode | string | 起始卡号 |
| userId | int | 操作人id |
| userName | string | 操作人名称 |
| writeCount | int | 写卡数量 |
响应示例
application/json, text/json
{
"shopId": 1,
"shopName": "",
"code": "",
"memberCardClassId": 4,
"memberCardClassName": "",
"startCode": "",
"endCode": "",
"currentCode": "",
"expectCount": 9,
"createCount": 10,
"writeCount": 11,
"isFinished": true,
"createTime": "2025-12-22 14:06:43",
"userId": 14,
"userName": "",
"details": [
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
},
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
}
],
"id": 16
}
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| endDate | date | |
| isFinished | int | |
| keyword | string | |
| pageIndex | int | |
| pageSize | int | |
| shopid | int | |
| startDate | date |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | [...] | |
| ┆- code | string | 单号 |
| ┆- createCount | int | 开卡数量 |
| ┆- createTime | date | 创建时间 |
| ┆- currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| ┆- endCode | string | 结束卡号 |
| ┆- expectCount | int | 预期数量 |
| ┆- id | int | |
| ┆- isFinished | boolean | 是否完成 |
| ┆- memberCardClassId | int | 会员卡类别Id |
| ┆- memberCardClassName | string | 会员卡类别 |
| ┆- shopId | int | 门店Id |
| ┆- shopName | string | 门店名称 |
| ┆- startCode | string | 起始卡号 |
| ┆- userId | int | 操作人id |
| ┆- userName | string | 操作人名称 |
| ┆- writeCount | int | 写卡数量 |
| pageIndex | int | |
| pageSize | int | |
| sumData | {...} | |
| ┆- code | string | 单号 |
| ┆- createCount | int | 开卡数量 |
| ┆- createTime | date | 创建时间 |
| ┆- currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| ┆- endCode | string | 结束卡号 |
| ┆- expectCount | int | 预期数量 |
| ┆- id | int | |
| ┆- isFinished | boolean | 是否完成 |
| ┆- memberCardClassId | int | 会员卡类别Id |
| ┆- memberCardClassName | string | 会员卡类别 |
| ┆- shopId | int | 门店Id |
| ┆- shopName | string | 门店名称 |
| ┆- startCode | string | 起始卡号 |
| ┆- userId | int | 操作人id |
| ┆- userName | string | 操作人名称 |
| ┆- writeCount | int | 写卡数量 |
| totalCount | int |
响应示例
application/json, text/json
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shopid | int | 门店id |
Body请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 单号 |
| createCount | int | 开卡数量 |
| createTime | date | 创建时间 |
| currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| endCode | string | 结束卡号 |
| expectCount | int | 预期数量 |
| id | int | |
| isFinished | boolean | 是否完成 |
| memberCardClassId | int | 会员卡类别Id |
| memberCardClassName | string | 会员卡类别 |
| shopId | int | 门店Id |
| shopName | string | 门店名称 |
| startCode | string | 起始卡号 |
| userId | int | 操作人id |
| userName | string | 操作人名称 |
| writeCount | int | 写卡数量 |
请求示例
application/json, text/json
{
"shopId": 1,
"shopName": "",
"code": "",
"memberCardClassId": 4,
"memberCardClassName": "",
"startCode": "",
"endCode": "",
"currentCode": "",
"expectCount": 9,
"createCount": 10,
"writeCount": 11,
"isFinished": true,
"createTime": "2025-12-22 14:06:43",
"userId": 14,
"userName": "",
"details": [
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
},
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
}
],
"id": 16
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | int | |
| message | string | |
| status | string | 200:; 500:; 601:; 602:; 603:; 604:; 605:; 606:; 607:; 608:; 701:; 702:; 703:; 704:; 801:; 901:; 902:; 903:; 904:; 905:; 1001:; 1002:; 1003: |
响应示例
application/json, text/json
{
"data": 1,
"status": 200,
"message": ""
}
Body请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| cardCode | string | 卡号 |
| id | int | |
| mac | string | 卡密 |
| orderId | int | 订单号 |
请求示例
application/json, text/json
{
"cardCode": "",
"mac": "",
"orderId": 3,
"id": 4
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | string | |
| message | string | |
| status | string | 200:; 500:; 601:; 602:; 603:; 604:; 605:; 606:; 607:; 608:; 701:; 702:; 703:; 704:; 801:; 901:; 902:; 903:; 904:; 905:; 1001:; 1002:; 1003: |
响应示例
application/json, text/json
{
"data": "",
"status": 200,
"message": ""
}