123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
-
- *
-
- *
- * ----------------------------------------------------------------------------
- *
-
- * 验证器
- */
- class Storeclass extends Validate
- {
- protected $rule = [
- 'storeclass_name' => 'require'
- ];
- protected $message = [
- 'storeclass_name.require' => '分类名称必填'
- ];
- protected $scene = [
- 'store_class_add' => ['storeclass_name'],
- 'store_class_edit' => ['storeclass_name']
- ];
- }
|