AccountValidate.php 516 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\v1\validate\customer;
  3. use think\Validate;
  4. /**
  5. * 账号信息验证器
  6. */
  7. class AccountValidate extends Validate
  8. {
  9. /**
  10. * 定义验证规则
  11. */
  12. protected $rule = [
  13. ];
  14. /**
  15. * 定义错误信息
  16. */
  17. protected $message = [
  18. 'uid' => '用户UID必须填写',
  19. ];
  20. /**
  21. * 定义场景
  22. */
  23. protected $scene = [
  24. 'save' => [
  25. 'uid',
  26. ],
  27. 'update' => [
  28. 'uid',
  29. ],
  30. ];
  31. }