<?php

namespace app\common\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'adminname'  =>  'require|unique:admin',
        'mobile'     =>  'mobile',
    ];
	
	protected $message  =   [
        'adminname.require' => '登录名不能为空',
        'adminname.unique'  => '登录名不能重复',
        'mobile.mobile'     => '手机号格式不正确' 
    ];

}