'require', 'rule_name' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'rule_name' => '规则名称', ]; /** * @notes 添加场景 * @return MasterWorkerRuleValidate * @author likeadmin * @date 2024/09/28 15:31 */ public function sceneAdd() { return $this->only(['rule_name']); } /** * @notes 编辑场景 * @return MasterWorkerRuleValidate * @author likeadmin * @date 2024/09/28 15:31 */ public function sceneEdit() { return $this->only(['id','rule_name']); } /** * @notes 删除场景 * @return MasterWorkerRuleValidate * @author likeadmin * @date 2024/09/28 15:31 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return MasterWorkerRuleValidate * @author likeadmin * @date 2024/09/28 15:31 */ public function sceneDetail() { return $this->only(['id']); } }