chaoyu/app/validate/Member.php

17 lines
420 B
PHP
Executable File

<?php
namespace app\validate;
use think\Validate;
class Member extends Validate
{
protected $rule = [
'group_id' => 'require|number',
'username' => 'require',
];
protected $message = [
'group_id.require' => '所属角色不能为空!',
'group_id.number' => '用户角色信息数据格式不正确!',
'username.require' => '用户姓名不能为空!',
];
}