NotifyTypeEnum.php 530 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * Class NotifyTypeEnum
  5. * @package common\enums
  6. * @author jianyan74 <751393839@qq.com>
  7. */
  8. class NotifyTypeEnum extends BaseEnum
  9. {
  10. // 消息类型
  11. const ANNOUNCE = 1; //公告
  12. const REMIND = 2; // 提醒
  13. const MESSAGE = 3; // 私信
  14. /**
  15. * @return string[]
  16. */
  17. public static function getMap(): array
  18. {
  19. return [
  20. self::ANNOUNCE => '公告',
  21. self::REMIND => '提醒',
  22. self::MESSAGE => '私信',
  23. ];
  24. }
  25. }
粤ICP备19079148号