'require', 'sn' => 'require', 'subject1' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'sn' => '科目编码', 'subject1' => '一级科目', ]; /** * @notes 添加场景 * @return CostSubjectValidate * @author likeadmin * @date 2023/12/18 15:41 */ public function sceneAdd() { return $this->only(['sn','subject1']); } /** * @notes 编辑场景 * @return CostSubjectValidate * @author likeadmin * @date 2023/12/18 15:41 */ public function sceneEdit() { return $this->only(['id','sn','subject1']); } /** * @notes 删除场景 * @return CostSubjectValidate * @author likeadmin * @date 2023/12/18 15:41 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return CostSubjectValidate * @author likeadmin * @date 2023/12/18 15:41 */ public function sceneDetail() { return $this->only(['id']); } }