2025-11-21 14:49:09 +08:00

52 lines
1.4 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 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\dict\sys;
/**
* 导出状态
*/
class ExportDict
{
const EXPORTING = '1'; //导出中
const SUCCESS = '2'; //导出成功
const FAIL = '-1'; //导出失败
/**
* 获取状态
* @return array
*/
public static function getStatus()
{
return [
self::EXPORTING => get_lang('dict_export.status_exporting'),
self::SUCCESS => get_lang('dict_export.status_success'),
self::FAIL => get_lang('dict_export.status_fail'),
];
}
/**
* 导出数据类型
* @return array
*/
public static function getExportType()
{
$type_array = event("ExportDataType");
$type_list = [];
foreach ($type_array as $v)
{
$type_list = empty($type_list) ? $v : array_merge($type_list, $v);
}
return $type_list;
}
}