<?php  namespace  App\Http\Requests\Manager\Website;

use App\Http\Requests\BaseRequest;

/**
 * 管理后台登录验证
 * @author  liuxaingxin
 *
 * */
class Potential extends BaseRequest{

    /**
     *
     * @return  array
     */
    public  function  rules(){
        return [
            'phone'     =>  'required',
            'code'      =>  'required|check_code',
            'id'        =>  'required|integer|gt:0',
        ];
    }

    // 场景列表
    protected   $scenes         = [
		'add'  		        => ['phone','code'],
        'set_status'  		    => ['id'],
	];

    /**
     *
     * @return  array
     */
    public  function  messages(){
        return [
            'phone.required'  =>  '请输入手机号',
            'code.required'   =>  '请输入手机号验证码',
            'id.required'       => 'ID未知',
            'id.integer'        => 'ID格式错误',
            'id.gt'   		    => 'ID格式错误',
        ];
    }

}
