init
This commit is contained in:
64
application/admin/model/yq/alarm/Alarm.php
Normal file
64
application/admin/model/yq/alarm/Alarm.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?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')];
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user