<?php

namespace app\admin\validate;

use think\Validate;

class RoleValidate extends Validate
{
    protected $rule = [
        'title' => 'require|max:32|unique:role'
    ];

    protected $message = [
        'title.require' => "角色必填",
        'title.max' => '角色用户名太长',
        'title.unique' => '角色已存在'
    ];
}