<?php

namespace app\common\validate;

use think\Validate;

class Agent extends Validate
{
    protected $rule = [
		'loginname'		=>  'require|unique:agent',
        'idnumber'		=>  'require|unique:agent'
    ];
	
	protected $message  =   [
		'loginname.require'		=> '登录账号不能为空。',
		'loginname.unique'		=> '登录账号已存在。',
        'idnumber.require'		=> '门店编号不能为空。',
        'idnumber.unique'		=> '门店编号不能重复。'
    ];

}