24 lines
516 B
PHP
Executable File
24 lines
516 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models\Enum;
|
|
class AdminEnum
|
|
{
|
|
// 状态类别
|
|
const INVALID = -1; //已删除
|
|
const NORMAL = 0; //正常
|
|
const FREEZE = 1; //冻结
|
|
|
|
public static function getStatusName($status){
|
|
switch ($status){
|
|
case self::INVALID:
|
|
return '已删除';
|
|
case self::NORMAL:
|
|
return '正常';
|
|
case self::FREEZE:
|
|
return '冻结';
|
|
default:
|
|
return '正常';
|
|
}
|
|
}
|
|
}
|