Files
park/application/admin/model/yq/alarm/Alarm.php
MeSHard b22d09bd39 init
2025-12-01 11:19:23 +08:00

65 lines
1.3 KiB
PHP

<?php
namespace app\admin\model\yq\alarm;
use app\admin\model\yq\base_config\Early;
use think\Model;
class Alarm extends Model
{
// 表名
protected $name = 'call_the_police';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
public function getTriggerTypeList()
{
return ['1'=>__('Trigger_type 1'),'2'=>__('Trigger_type 2')];
}
public function getFeedbackStatusList()
{
return ['1'=>__('Feedback_status 1'),'2'=>__('Feedback_status 2'),'3'=>__('Feedback_status 3')];
}
public function getResStatusList()
{
return ['1'=>__('Res_status 1'),'2'=>__('Res_status 2'),'3'=>__('Res_status 3')];
}
public function getResDepartmentList()
{
return ['1'=>__('Res_department 1'),'2'=>__('Res_department 2'),'3'=>__('Res_department 3')];
}
public function getFeedbackDepartmentList()
{
return ['1'=>__('Feedback_department 1'),'2'=>__('Feedback_department 2'),'3'=>__('Feedback_department 3')];
}
public function getIsResetList()
{
return ['1'=>__('Is_reset 1'),'0'=>__('Is_reset 0')];
}
}