<?php
namespace app\api\validate;
use app\common\validate\BaseValidate;

/**
 * 区域验证器
 * Class RegionValidate
 * @package app\api\validate
 */
class RegionValidate extends BaseValidate
{

    protected $rule = [
        'longitude' => 'require',
        'latitude' => 'require',
    ];

    protected $message = [
        'longitude.require' => '参数缺失',
        'latitude.require' => '参数缺失',
    ];


    /**
     * @notes
     * @return RegionValidate
     */
    public function sceneLocation()
    {
        return $this->only(['longitude','latitude']);
    }
}