<?php
namespace app\validate;

use think\Validate;

class PositionValidate extends Validate
{
    protected $rule = [
        'title|标题' => 'require|length:1,60',
        'visible' => 'require|in:0,1',
        'num|人数' => 'require|number',
    ];
    protected $message = [
        'visible.in' => '状态参数错误',
    ];

}