PropertyValidate.php 456 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\api\validate;
  3. use app\common\validate\BaseValidate;
  4. /**
  5. * 物业模块验证器
  6. * Class PropertyValidate
  7. * @package app\api\validate
  8. */
  9. class PropertyValidate extends BaseValidate
  10. {
  11. protected $rule = [
  12. 'amount' => 'require'
  13. ];
  14. protected $message = [
  15. 'amount.require' => '提现金额不能为空',
  16. ];
  17. public function sceneWithdrawCash()
  18. {
  19. return $this->only(['amount']);
  20. }
  21. }