'require', 'title' => 'require', 'type' => 'require', 'status' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'title' => '主题', 'type' => '任务类型', 'status' => '状态', ]; /** * @notes 添加场景 * @return TaskTemplateValidate * @author likeadmin * @date 2023/08/06 17:30 */ public function sceneAdd() { return $this->only(['title','type','status']); } /** * @notes 编辑场景 * @return TaskTemplateValidate * @author likeadmin * @date 2023/08/06 17:30 */ public function sceneEdit() { return $this->only(['id','title','type','status']); } /** * @notes 删除场景 * @return TaskTemplateValidate * @author likeadmin * @date 2023/08/06 17:30 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return TaskTemplateValidate * @author likeadmin * @date 2023/08/06 17:30 */ public function sceneDetail() { return $this->only(['id']); } }