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