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.
33 lines
598 B
33 lines
598 B
<?php
|
|
|
|
namespace app\common\enum\user;
|
|
|
|
use app\common\enum\EnumBasics;
|
|
|
|
class IdentityEnum extends EnumBasics
|
|
{
|
|
// 分销商
|
|
const DEALER = 20;
|
|
|
|
// 会员用户
|
|
const MEMBER = 10;
|
|
|
|
/**
|
|
* 获取用户身份值
|
|
* @return array
|
|
*/
|
|
public static function data(): array
|
|
{
|
|
return [
|
|
|
|
self::MEMBER => [
|
|
'name' => 'PLUS会员',
|
|
'value' => self::MEMBER,
|
|
],
|
|
self::DEALER => [
|
|
'name' => '分销商',
|
|
'value' => self::DEALER,
|
|
],
|
|
];
|
|
}
|
|
} |