You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/app/common/enum/dealer/DealerUserEnum.php

31 lines
592 B

11 months ago
<?php
namespace app\common\enum\dealer;
use app\common\enum\EnumBasics;
class DealerUserEnum extends EnumBasics
{
//工程师
const ENGINEER = 20;
//普通
const NORMAL = 10;
/**
* 获取枚举数据
* @return array
*/
public static function data(): array
{
return [
self::ENGINEER => [
'name' => '工程师',
'value' => self::ENGINEER,
],
self::NORMAL => [
'name' => '普通',
'value' => self::NORMAL,
],
];
}
}