智简魔方文档

全局通知管理列表

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\ProductNoticeGroupModel::productNoticeGroupList
所属业务消息通知
来源模块/系统商品通知组模型

功能说明

全局通知管理列表

调用示例

$param = [['type' => 'string', 'page' => 1, 'limit' => 1, 'name' => '示例名称', 'product_name' => '示例名称']];
$result = (new \app\common\model\ProductNoticeGroupModel())->productNoticeGroupList($param);

参数

参数类型必填默认值校验规则说明
paramarrayrequire参数
param.typestringrequire通知类型标识
param.pageint页数
param.limitint每页条数
param.namestring搜索:分组名称
param.product_namestring搜索:商品名称

返回值

返回项类型说明
list[].idint触发动作组ID
list[].namestring触发动作组名称
list[].is_defaultint是否默认组(0=否,1=是)
list[].notice_setting.xxxint对应触发动作状态(xxx=动作标识,0=关闭,1=开启)
list[].product[].idint商品ID
list[].product[].namestring商品名称
countint总条数
notice_type[].typestring通知类型标识
notice_type[].namestring通知类型名称
notice_setting[].namestring通知标识
notice_setting[].name_langstring通知名称

正常返回

{
  "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调用失败时由具体实现抛出异常,异常信息以运行时结果为准。