NotifyConfigTypeEnum.php 826 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * Class NotifyConfigTypeEnum
  5. * @package common\enums
  6. * @author jianyan74 <751393839@qq.com>
  7. */
  8. class NotifyConfigTypeEnum extends BaseEnum
  9. {
  10. const SYS = 'sys';
  11. const DING_TALK = 'dingTalk';
  12. const WECHAT_MP = 'wechatMp';
  13. const WECHAT_MINI = 'wechatMini';
  14. const SMS = 'sms';
  15. const EMAIL = 'email';
  16. const APP_PUSH = 'appPush';
  17. /**
  18. * @return array|string[]
  19. */
  20. public static function getMap(): array
  21. {
  22. return [
  23. self::SYS => '系统提醒',
  24. self::DING_TALK => '钉钉提醒',
  25. self::WECHAT_MP => '微信消息',
  26. self::WECHAT_MINI => '微信小程序',
  27. self::SMS => '短信',
  28. self::EMAIL => '邮件',
  29. self::APP_PUSH => 'App推送',
  30. ];
  31. }
  32. }
粤ICP备19079148号