|
<?php
|
|
|
|
namespace app\common\model\systems;
|
|
|
|
use app\common\model\BaseModel;
|
|
|
|
class System extends BaseModel
|
|
{
|
|
protected $name = 'system';
|
|
|
|
public function getStatusTextAttr($value,$data): string
|
|
{
|
|
$status = [0=>'正常',1=>'禁用',2=>'删除'];
|
|
return $status[$data['status']];
|
|
}
|
|
} |