123456789101112131415161718192021 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- class DinnerType extends Validate{
- protected $rule = [
- 'name|名称' => 'require|length:1,200',
- 'color|颜色' => 'require',
- ];
- protected $message = [
- 'name.length' => '名称必须200字以内',
- ];
- protected $scene = [
- ];
- }
|