new-admin-api/app/validate/admin/UserLabelValidate.php

19 lines
231 B
PHP

<?php
namespace app\validate\admin;
use think\Validate;
class UserLabelValidate extends Validate
{
protected $failException = true;
protected $rule = [
'label_name|标签名称' => 'require|max:32'
];
}