data_center/app/common/model/systems/System.php

16 lines
314 B
PHP
Raw Permalink Normal View History

2023-09-18 09:11:13 +08:00
<?php
namespace app\common\model\systems;
use app\common\model\BaseModel;
class System extends BaseModel
{
protected $name = 'system';
2023-09-19 09:18:45 +08:00
public function getStatusTextAttr($value,$data): string
2023-09-18 09:11:13 +08:00
{
2023-09-19 09:18:45 +08:00
$status = [0=>'正常',1=>'禁用',2=>'删除'];
return $status[$data['status']];
2023-09-18 09:11:13 +08:00
}
}