InformationValidate.php 360 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020/5/28
  7. *
  8. *
  9. */
  10. namespace app\validate\api;
  11. use think\Validate;
  12. class InformationValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'title|标题' => 'require',
  17. 'images|图片' => 'require',
  18. 'content|内容' => 'require',
  19. ];
  20. }