// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\common\enum\goods; use app\common\enum\EnumBasics; /** * 枚举类:商品批量导入状态 * Class ImportStatus * @package app\common\enum\goods */ class ImportStatus 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, ] ]; } }