全局通知管理列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ProductNoticeGroupModel::productNoticeGroupList |
| 所属业务 | 消息通知 |
| 来源模块/系统 | 商品通知组模型 |
功能说明
全局通知管理列表
调用示例
$param = [['type' => 'string', 'page' => 1, 'limit' => 1, 'name' => '示例名称', 'product_name' => '示例名称']];
$result = (new \app\common\model\ProductNoticeGroupModel())->productNoticeGroupList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param | array | 是 | — | require | 参数 |
param.type | string | 是 | — | require | 通知类型标识 |
param.page | int | 否 | — | — | 页数 |
param.limit | int | 否 | — | — | 每页条数 |
param.name | string | 否 | — | — | 搜索:分组名称 |
param.product_name | string | 否 | — | — | 搜索:商品名称 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].id | int | 触发动作组ID |
list[].name | string | 触发动作组名称 |
list[].is_default | int | 是否默认组(0=否,1=是) |
list[].notice_setting.xxx | int | 对应触发动作状态(xxx=动作标识,0=关闭,1=开启) |
list[].product[].id | int | 商品ID |
list[].product[].name | string | 商品名称 |
count | int | 总条数 |
notice_type[].type | string | 通知类型标识 |
notice_type[].name | string | 通知类型名称 |
notice_setting[].name | string | 通知标识 |
notice_setting[].name_lang | string | 通知名称 |
正常返回
{
"list": [
{
"id": 1,
"name": "示例名称",
"is_default": 1,
"notice_setting": {
"xxx": 1
},
"product": [
{
"id": 1,
"name": "示例名称"
}
]
}
],
"count": 1,
"notice_type": [
{
"type": "string",
"name": "示例名称"
}
],
"notice_setting": [
{
"name": "示例名称",
"name_lang": "示例名称"
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |