简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
POST/business/{公众号}/plugin/MessageNotice/strategyIndex
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
other | 否 | int | 传1获取成员和消息类型数据,不传不获取 |
search.name | 否 | string | 策略名称 |
search.msg_type | 否 | int | 消息类型id |
search.staff_id | 否 | int | 员工id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"record_list": {
"current_page": 1,
"data": [
{
"id": 8,
"name": "测试策略1",
"created_at": "2024-01-15 10:00:39",
"msg_type_string": "申请通知,订单通知",
"notice_scope": "测试企业,测试员工2"
},
{
"id": 9,
"name": "测试策略2",
"created_at": "2024-01-15 10:00:49",
"msg_type_string": "商品通知,系统通知,订单通知",
"notice_scope": "ddd,测试员工2"
}
],
"first_page_url": "http://yzhonshop.com/business/1/plugin/MessageNotice/strategyIndex?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://yzhonshop.com/business/1/plugin/MessageNotice/strategyIndex?page=1",
"next_page_url": null,
"path": "http://yzhonshop.com/business/1/plugin/MessageNotice/strategyIndex",
"per_page": 15,
"prev_page_url": null,
"to": 3,
"total": 3
},
"staff_list": [
{
"id": 1,
"name": "测试员工1",
"userid": null,
"avatar_mediaid": null
},
{
"id": 2,
"name": "测试员工2",
"userid": null,
"avatar_mediaid": null
},
{
"id": 3,
"name": "创始人",
"userid": null,
"avatar_mediaid": null
}
],
"msg_type_list": [
{
"value": 1,
"name": "系统通知"
},
{
"value": 2,
"name": "订单通知"
},
{
"value": 3,
"name": "提现通知"
},
{
"value": 4,
"name": "申请通知"
},
{
"value": 5,
"name": "商品通知"
},
{
"value": 6,
"name": "优惠券"
},
{
"value": 7,
"name": "退款通知"
}
]
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
msg_type_list.value | int | 通知类型id |
msg_type_list.name | string | 通知类型名称 |
strategy.name | string | 策略名称 |
strategy.id | string | 策略id |
strategy.notice_scope | int | 通知范围 |
strategy.msg_type_string | string | 消息类型 |
staff_list.name | string | 员工名称 |
staff_list.id | int | 员工id |