'require', 'user_id' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'user_id' => '用户id', ]; /** * @notes 添加场景 * @return UserInfoValidate * @author BD * @date 2024/06/08 17:51 */ public function sceneAdd() { return $this->only(['user_id']); } /** * @notes 编辑场景 * @return UserInfoValidate * @author BD * @date 2024/06/08 17:51 */ public function sceneEdit() { return $this->only(['id','user_id']); } /** * @notes 删除场景 * @return UserInfoValidate * @author BD * @date 2024/06/08 17:51 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return UserInfoValidate * @author BD * @date 2024/06/08 17:51 */ public function sceneDetail() { return $this->only(['id']); } }