niucloud-admin/niucloud/app/dict/sys/UpgradeDict.php
全栈小学生 384e793c7e up
2025-05-23 14:40:12 +08:00

41 lines
1.3 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 UpgradeRecordsDict
* @package app\dict\sys
*
*/
class UpgradeDict
{
const STATUS_READY = 'ready'; //准备执行
const STATUS_COMPLETE = 'complete'; // 完成
const STATUS_FAIL = 'fail'; // 失败
const STATUS_CANCEL = 'cancel';
public static function getStatus($status)
{
$status_list = [
self::STATUS_READY => get_lang('dict_upgrade.ready'),
self::STATUS_COMPLETE => get_lang('dict_upgrade.complete'),
self::STATUS_FAIL => get_lang('dict_upgrade.fail'),
self::STATUS_CANCEL => get_lang('dict_upgrade.cancel'),
];
return $status_list[ $status ] ?? '';
}
}