// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\common\enum\groupon; use app\common\enum\EnumBasics; /** * 枚举类:拼单状态 * Class TaskStatus * @package app\common\enum\groupon */ class TaskStatus extends EnumBasics { // 进行中 const NORMAL = 10; // 拼单成功 const SUCCESS = 20; // 拼单失败 const FAIL = 30; /** * 获取枚举类型值 * @return array */ public static function data(): array { return [ self::NORMAL => [ 'name' => '进行中', 'value' => self::NORMAL, ], self::SUCCESS => [ 'name' => '拼单成功', 'value' => self::SUCCESS, ], self::FAIL => [ 'name' => '拼单失败', 'value' => self::FAIL, ] ]; } }