CardValidate.php 690 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * CardBatchValidate.php
  4. * User: ZhouBenXu
  5. * Date: 2024/6/27
  6. * Time: 上午9:54
  7. * Notes:
  8. */
  9. namespace app\admin\validate\card;
  10. use support\Validate;
  11. class CardValidate extends Validate
  12. {
  13. protected $rule = [
  14. 'card_id' => 'require', // 储值卡id
  15. 'page' => 'require', // 页码
  16. 'pageSize' => 'require', // 分页条数
  17. 'card_ids' => 'require', // 储值卡id
  18. ];
  19. protected $message = [];
  20. protected $scene = [
  21. 'save' => ['join_card_batch_user_id','card_batch_id','validtimes_status','card_batch_name'],
  22. 'delete' => ['card_ids'],
  23. 'list' => ['page','pageSize'],
  24. 'info' => ['card_id'],
  25. ];
  26. }