简要描述:
- 群活码列表
请求URL:
GET/&route=plugin.group-code.admin.group-code.get-group-code-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
search[member_id] | 是 | int | 群活码创建者id,后台填0 |
search[member] | 是 | string | 创建会员昵称,姓名,手机 |
search[code_name] | 是 | string | 群活码名称 |
search[order_by] | 是 | int | 排序规则,0ID,1今日扫码,2累计扫码 |
search[is_statistic] | 是 | int | 是否统计,0是,1否 |
search[time][start] | 是 | int | 开始时间戳 |
search[time][end] | 是 | int | 结束时间戳 |
返回参数data.data说明:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
code_name | 是 | string | 群活码名称 |
auth_visit | 是 | array | 访问授权,0关闭,1开启 |
member_id | 是 | int | 创建者用户id,0为后台创建 |
status | 是 | int | 群活码状态,0关闭,1开启 |
recommend | 是 | int | 推荐,0关闭,1开启 |
cumulative | 是 | int | 累计扫码人数 |
cumulative_new | 是 | int | 累计新会员 |
log_today_count | 是 | int | 今日扫码人数 |
log_new_today_count | 是 | int | 今日新会员人数 |
code_total_count | 是 | int | 二维码总数 |
code_soon_expire_count | 是 | int | 二维码即将过期数量 |
code_expire_count | 是 | int | 二维码已过期总数 |
has_one_member.uid | 是 | int | 创建群活码用户id |
has_one_member.nickname | 是 | string | 创建群活码用户昵称 |
has_one_member.avatar | 是 | string | 创建群活码用户头像 |
返回参数data.statistic说明:统计信息,当第一次进页面或者搜索选项为统计时有数据,否则为[]
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
cumulative | 是 | int | 累计扫码人数 |
cumulative_new | 是 | int | 累计新会员 |
code_total | 是 | int | 活码总数 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"list": {
"total": 4,
"per_page": 12,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 4,
"data": [
{
"id": 4,
"code_name": "123123121",
"auth_visit": 0,
"member_id": 164932,
"status": 1,
"recommend": 1,
"created_at": "2020-07-31 14:23:57",
"cumulative": "40",
"cumulative_new": "60",
"log_today_count": 0,
"log_new_today_count": 0,
"code_total_count": 2,
"code_soon_expire_count": 0,
"code_expire_count": 2,
"has_one_member": {
"uid": 164932,
"nickname": "A李李李",
"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
"username": "A李李李"
}
},
{
"id": 2,
"code_name": "1231231212",
"auth_visit": 0,
"member_id": 0,
"status": 0,
"recommend": 0,
"created_at": "2020-07-31 14:10:17",
"cumulative": "0",
"cumulative_new": "0",
"log_today_count": 0,
"log_new_today_count": 0,
"code_total_count": 1,
"code_soon_expire_count": 0,
"code_expire_count": 1,
"has_one_member": null
},
{
"id": 3,
"code_name": "123123121",
"auth_visit": 0,
"member_id": 164932,
"status": 1,
"recommend": 1,
"created_at": "2020-07-31 14:23:14",
"cumulative": "0",
"cumulative_new": "0",
"log_today_count": 0,
"log_new_today_count": 0,
"code_total_count": 2,
"code_soon_expire_count": 0,
"code_expire_count": 2,
"has_one_member": {
"uid": 164932,
"nickname": "A李李李",
"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
"avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIyz11G1bdMA4kgjxzrbd4GCZDUpK16Pib8Iq9qjdm7UOgJgVDtQtjybWhWGCgopiaPUXlKDCQfj7xg/132",
"username": "A李李李"
}
},
{
"id": 1,
"code_name": "东方闪电官方2312",
"auth_visit": 0,
"member_id": 0,
"status": 0,
"recommend": 0,
"created_at": "2020-07-30 16:54:05",
"cumulative": "0",
"cumulative_new": "0",
"log_today_count": 0,
"log_new_today_count": 0,
"code_total_count": 1,
"code_soon_expire_count": 0,
"code_expire_count": 1,
"has_one_member": null
}
]
},
"statistic": {
"cumulative": "40",
"cumulative_new": "60",
"code_total": 4
},
"search": {
"member_id": "",
"member": "",
"code_name": "",
"order_by": "2",
"is_statistic": "0",
"time": {
"start": "",
"end": ""
}
}
}
}
错误时返回: