| 1234567891011121314151617181920212223242526 |
- <?php
- namespace app\api\validate;
- use think\Validate;
- class Shop extends Validate
- {
- protected $rule = [
- 'plat_id' => 'require|number',
- 'shop_id' => 'require|number',
- 'variety' => 'require',
- ];
-
- protected $message = [
- 'plat_id' => '参数有误',
- 'shop_id' => '参数有误',
- 'variety' => '参数有误',
- ];
-
- protected $scene = [
- 'add' => ['plat_id','shop_id','variety'],
- 'goods' => ['plat_id','shop_id','variety'],
- ];
- }
|