<?php
/**
 * Created by PhpStorm.
 * User: Color
 * Date: 2018/9/10
 * Time: 18:05
 */

namespace app\wechat\validate;

use think\Validate;

class Reply extends Validate
{
    protected $rule = [
        'key' => 'require|max:30',
        'content' => 'require|max:300',
    ];

    protected $message = [
        'key.require' => '关键字不能为空',
        'key.max' => '关键字最大程度为30',
        'content.require' => '回复内容不能为空',
        'content.max' => '回复内容最大长度为300'
    ];
}