data_center/app/common/validate/user/UserValidate.php

22 lines
360 B
PHP

<?php
namespace app\common\validate\user;
use app\common\validate\BaseValidate;
class UserValidate extends BaseValidate
{
protected $rule = [
'id' => 'require',
];
protected $message = [
'id.require' => '请选择用户',
];
public function sceneDetail(): UserValidate
{
return $this->only(['id']);
}
}