'require', 'cost_subject_id' => 'require', 'gc_cost_budget_id' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'cost_subject_id' => '一级科目id', 'gc_cost_budget_id' => '费用明细id', ]; /** * @notes 添加场景 * @return CostBudgetDetailValidate * @author likeadmin * @date 2023/12/18 11:22 */ public function sceneAdd() { return $this->only(['cost_subject_id','gc_cost_budget_id']); } /** * @notes 编辑场景 * @return CostBudgetDetailValidate * @author likeadmin * @date 2023/12/18 11:22 */ public function sceneEdit() { return $this->only(['id','cost_subject_id','gc_cost_budget_id']); } /** * @notes 删除场景 * @return CostBudgetDetailValidate * @author likeadmin * @date 2023/12/18 11:22 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return CostBudgetDetailValidate * @author likeadmin * @date 2023/12/18 11:22 */ public function sceneDetail() { return $this->only(['id']); } }