全栈小学生 0e47055ccb v1.0.0-beta.1
2023-04-15 17:12:49 +08:00

50 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\enum\sys;
class FileEnum
{
//上传方式 图片
const IMAGE = 'image';
//上传方式 视频
const VIDEO = 'video';
//上传方式 文件
const DOCUMENT = 'document';
const LOCAL = 'local';//本地存储
const QINIU = 'qiniu';//七牛云
const ALIYUN = 'aliyun';//阿里云
const QCLOUD = 'qcloud';//腾讯云
/**
* 附件类型
* @return array
*/
public static function getType(){
return [
self::IMAGE => get_lang('enum_file.type_image'),//图片
self::VIDEO => get_lang('enum_file.type_video'),//视频
];
}
/**
* 存储方式
* @return array
*/
public static function getStorageType(){
return [
self::LOCAL => get_lang('enum_file.storage_type_local'),//本地存储
self::QINIU => get_lang('enum_file.storage_type_qiniu'),//七牛云
self::ALIYUN => get_lang('enum_file.storage_type_image'),//阿里云
self::QCLOUD => get_lang('enum_file.storage_type_qcloud'),//腾讯云
];
}
}