AttachmentDriveEnum.php 630 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * Class AttachmentDriveEnum
  5. * @package common\enums
  6. */
  7. class AttachmentDriveEnum extends BaseEnum
  8. {
  9. const LOCAL = 'local';
  10. const QINIU = 'qiniu';
  11. const OSS = 'oss';
  12. const OSS_DIRECT_PASSING = 'oss-direct-passing';
  13. const COS = 'cos';
  14. /**
  15. * @return string[]
  16. */
  17. public static function getMap(): array
  18. {
  19. return [
  20. self::LOCAL => '本地',
  21. self::QINIU => '七牛',
  22. self::OSS => '阿里云OSS',
  23. self::COS => '腾讯云COS',
  24. // self::OSS_DIRECT_PASSING => 'OSS直传',
  25. ];
  26. }
  27. }
粤ICP备19079148号