'require', 'device_id' => 'require', 'type' => 'require', 'content' => 'require', 'value' => 'require', 'solution' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'device_id' => '设备ID', 'type' => '监测类型', 'content' => '报警内容', 'value' => '报警数值', 'solution' => '解决方案', ]; /** * @notes 添加场景 * @return MonitorAlarmValidate * @author likeadmin * @date 2023/11/24 16:34 */ public function sceneAdd() { return $this->only(['device_id','type','content','value','solution']); } /** * @notes 编辑场景 * @return MonitorAlarmValidate * @author likeadmin * @date 2023/11/24 16:34 */ public function sceneEdit() { return $this->only(['id','device_id','type','content','value','solution']); } /** * @notes 删除场景 * @return MonitorAlarmValidate * @author likeadmin * @date 2023/11/24 16:34 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return MonitorAlarmValidate * @author likeadmin * @date 2023/11/24 16:34 */ public function sceneDetail() { return $this->only(['id']); } }