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

22 lines
360 B
PHP
Raw Normal View History

2023-09-18 09:11:13 +08:00
<?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']);
}
}