<?php
namespace app\workerapi\validate;
use app\common\validate\BaseValidate;

/**
 * @author 林海涛
 * @date 2024/7/11 下午2:32
 */
Class FeedbackValidate  extends BaseValidate
{
    protected $rule = [
        'feedback_type' => 'require',
        'description' => 'require',
        'pictures'=>'array|length:0,4'
    ];

    protected $message = [
        'feedback_type.require' => '意见反馈类型必填',
        'description.require' => '请输入详细说明',
        'pictures.array' => '上传的图片为一个数组',
        'pictures.length' => '图片最多上传4张',
    ];
}