'require', 'device_id' => 'require', 'temperature' => 'require', 'moisture' => 'require', 'conductivity' => 'require', 'ph' => 'require', 'n_content' => 'require', 'p_content' => 'require', 'k_content' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'device_id' => '设备ID', 'temperature' => '土壤温度', 'moisture' => '土壤湿度', 'conductivity' => '电导率', 'ph' => '土壤酸碱度', 'n_content' => '氮含量', 'p_content' => '磷含量', 'k_content' => '钾含量', ]; /** * @notes 添加场景 * @return SoilMonitorValidate * @author likeadmin * @date 2023/11/24 17:02 */ public function sceneAdd() { return $this->only(['device_id','temperature','moisture','conductivity','ph','n_content','p_content','k_content']); } /** * @notes 编辑场景 * @return SoilMonitorValidate * @author likeadmin * @date 2023/11/24 17:02 */ public function sceneEdit() { return $this->only(['id','device_id','temperature','moisture','conductivity','ph','n_content','p_content','k_content']); } /** * @notes 删除场景 * @return SoilMonitorValidate * @author likeadmin * @date 2023/11/24 17:02 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return SoilMonitorValidate * @author likeadmin * @date 2023/11/24 17:02 */ public function sceneDetail() { return $this->only(['id']); } }