UserBalanceJob.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2021/2/26
  6. * Time: 11:23
  7. */
  8. namespace App\Jobs;
  9. use Illuminate\Bus\Queueable;
  10. use Illuminate\Queue\SerializesModels;
  11. use Illuminate\Queue\InteractsWithQueue;
  12. use Illuminate\Contracts\Queue\ShouldQueue;
  13. use Illuminate\Foundation\Bus\Dispatchable;
  14. class UserBalanceJob implements ShouldQueue
  15. {
  16. use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
  17. /**
  18. * @var
  19. */
  20. private $uid;
  21. /**
  22. * @var
  23. */
  24. private $type;
  25. /**
  26. * @var
  27. */
  28. private $fee;
  29. /**
  30. * @var
  31. */
  32. private $source;
  33. /**
  34. * @var
  35. */
  36. private $desc;
  37. /**
  38. * Create a new job instance.
  39. *
  40. */
  41. public function __construct($uid,$type,$fee,$source,$desc)
  42. {
  43. $this->uid = $uid;
  44. $this->type = $type;
  45. $this->fee = $fee;
  46. $this->source = $source;
  47. $this->desc = $desc;
  48. }
  49. /**
  50. * Execute the job.
  51. *
  52. * @return void
  53. */
  54. public function handle(){
  55. }
  56. }