AttachmentUploadTypeEnum.php 539 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * Class AttachmentUploadTypeEnum
  5. * @package common\enums
  6. */
  7. class AttachmentUploadTypeEnum extends BaseEnum
  8. {
  9. const IMAGES = 'images';
  10. const FILES = 'files';
  11. const VIDEOS = 'videos';
  12. const VOICES = 'voices';
  13. /**
  14. * @return string[]
  15. */
  16. public static function getMap(): array
  17. {
  18. return [
  19. self::IMAGES => '图片',
  20. self::FILES => '文件',
  21. self::VIDEOS => '视频',
  22. self::VOICES => '音频',
  23. ];
  24. }
  25. }
粤ICP备19079148号