// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\common\enum\order\export; use app\common\enum\EnumBasics; /** * 枚举类:导出状态 * Class ExportStatus * @package app\common\enum\order\export */ class ExportStatus extends EnumBasics { // 进行中 const NORMAL = 10; // 已完成 const COMPLETED = 20; // 失败 const FAIL = 30; /** * 获取枚举数据 * @return array */ public static function data(): array { return [ self::NORMAL => [ 'name' => '进行中', 'value' => self::NORMAL, ], self::COMPLETED => [ 'name' => '已完成', 'value' => self::COMPLETED, ], self::FAIL => [ 'name' => '失败', 'value' => self::FAIL, ] ]; } }