<?php

namespace app\admin\validate;

use think\Validate;
use app\model;
use app\api\validate\BaseValidate;

class AdvertValidate extends BaseValidate
{

    protected $rule = [
        'name' => 'require',
        'p_id' => 'require',
        'cover_img_id' => 'require',
    ];
    protected $message = [
        'name.require' => '广告标题不能为空',
        'p_id.require' => '请选择广告位置',
        'cover_img_id.require' => '请上传图片',

    ];



}