CardValidate.php 802 B

1234567891011121314151617181920212223242526272829303132333435
  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. 'join_card_member_id' => 'require', // 会员id
  19. ];
  20. protected $message = [];
  21. protected $scene = [
  22. 'save' => ['join_card_batch_user_id','card_batch_id','validtimes_status','card_batch_name'],
  23. 'delete' => ['card_ids'],
  24. 'list' => ['page','pageSize'],
  25. 'info' => ['card_id'],
  26. 'binding' => ['card_id','join_card_member_id'],
  27. ];
  28. }