智简魔方文档

发送管理

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\NoticeSettingModel::settingList
所属业务消息通知
来源模块/系统通知发送管理

功能说明

发送管理

调用示例

$result = (new \app\common\model\NoticeSettingModel())->settingList();

参数

该函数/方法无需传入参数。

返回值

返回项类型说明
listarray发送管理
list[].namestring动作名称
list[].sms_global_nameint短信国际接口名称
list[].sms_global_templateint短信国际接口模板id
list[].sms_namestring短信国内接口名称
list[].sms_templateint短信国内接口模板id
list[].sms_enableint启用状态,0禁用,1启用
list[].email_namestring邮件接口名称
list[].email_templateint邮件接口模板id
list[].email_enableint启用状态,0禁用,1启用
list[].typestring通知分类标识
configurationarray默认接口
configuration.send_smsstring默认国内短信接口
configuration.send_sms_globalstring默认国际短信接口
configuration.send_emailstring默认邮件接口
type[].namestring通知分类标识
type[].name_langstring分类名称

正常返回

{
  "list": [
    {
      "name": "示例名称",
      "sms_global_name": 1,
      "sms_global_template": 1,
      "sms_name": "示例名称",
      "sms_template": 1,
      "sms_enable": 1,
      "email_name": "user@example.com",
      "email_template": 1,
      "email_enable": 1,
      "type": "string"
    }
  ],
  "configuration": [
    {
      "send_sms": "string",
      "send_sms_global": "string",
      "send_email": "user@example.com"
    }
  ],
  "type": [
    {
      "name": "示例名称",
      "name_lang": "示例名称"
    }
  ]
}

异常情况

异常类型说明
Throwable调用失败时由具体实现抛出异常,异常信息以运行时结果为准。