<?php
namespace app\admin\validate;

use think\Validate;

class ArticleCategory extends Validate
{
    protected $rule = [
        'pid'  => 'require',
        'name' => 'require',
        'sort' => 'require|number'
    ];

    protected $message = [
        'pid.require'  => '请选择上级栏目',
        'name.require' => '请输入栏目名称',
        'sort.require' => '请输入排序',
        'sort.number'  => '排序只能填写数字'
    ];
}