<?php
namespace app\admin\validate;

use think\Validate;
use app\api\validate\BaseValidate;
class ArticleValidate extends BaseValidate
{

    protected $rule =   [
        'title'  => 'require',
        'cate_id'   => 'require',
        'thumb'=>'require',
    ];
    protected $message  =   [
        'title.require' => '文章标题不能为空',
        'cate_id.require'   => '请选择分类',
        'thumb.require'  => '请上传图片',

    ];



}