123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
- * ============================================================================
- *
- * ============================================================================
- * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
- * 网站地址: https://www.valimart.net/
- * ----------------------------------------------------------------------------
- *
- * ============================================================================
- * 验证器
- */
- 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']
- ];
- }
|