Shop.php 549 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\api\validate;
  3. use think\Validate;
  4. class Shop extends Validate
  5. {
  6. protected $rule = [
  7. 'plat_id' => 'require|number',
  8. 'shop_id' => 'require|number',
  9. 'variety' => 'require',
  10. ];
  11. protected $message = [
  12. 'plat_id' => '参数有误',
  13. 'shop_id' => '参数有误',
  14. 'variety' => '参数有误',
  15. ];
  16. protected $scene = [
  17. 'add' => ['plat_id','shop_id','variety'],
  18. 'goods' => ['plat_id','shop_id','variety'],
  19. ];
  20. }