<?php
namespace app\common\validate;

use \app\common\validate\BaseValidate;

class Article extends BaseValidate
{
    protected $rule =   [
        'cid'  => 'require|gt:0',
        'title'   => 'require|max:100',
        'content' => 'require',    
        'thumb' =>  'number',
        'is_display'=>'require|in:0,1',
        'link_url'=>'max:200',
        'seo_keywords'=>'max:100',
        'seo_description'=>'max:200',
        'addtime'=>'require|number',
        'click'=>'number',
        'sort_id'=>'number',
    ];
}