IndexValidate.php 351 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\admin\validate\customer;
  3. use support\Validate;
  4. class IndexValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'id'=>'require|integer',
  8. 'mobile'=>'mobile',
  9. 'card_id'=>'idCard'
  10. ];
  11. protected $message = [];
  12. protected $scene = [
  13. 'add'=>['mobile','card_id'],
  14. 'update'=>[]
  15. ];
  16. }