GetFpdxProfileMessage.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace App\Generated\V1\Messages\User;
  3. use App\Generated\V1\DTOs\FpdxProfileDTO;
  4. use App\Generated\V1\DTOs\BannerDTO;
  5. use Kamicloud\StubApi\Concerns\ValueHelper;
  6. use Kamicloud\StubApi\Http\Messages\Message;
  7. use App\Generated\V1\DTOs\SupvipDTO;
  8. use Kamicloud\StubApi\Utils\Constants;
  9. use App\Generated\V1\DTOs\BlackDTO;
  10. class GetFpdxProfileMessage extends Message
  11. {
  12. use ValueHelper;
  13. protected $user;
  14. protected $supvip;
  15. protected $bindFpdxfwh;
  16. protected $lockCard;
  17. protected $banner;
  18. protected $black;
  19. protected $appSignAt;
  20. protected $course;
  21. protected $tags;
  22. public function requestRules()
  23. {
  24. return [
  25. ];
  26. }
  27. public function responseRules()
  28. {
  29. return [
  30. ['user', 'user', FpdxProfileDTO::class, Constants::MODEL, null],
  31. ['supvip', 'supvip', SupvipDTO::class, Constants::MODEL | Constants::OPTIONAL, null],
  32. ['bindFpdxfwh', 'bind_fpdxfwh', 'bail|boolean', Constants::BOOLEAN, null],
  33. ['lockCard', 'lock_card', 'bail|boolean', Constants::BOOLEAN, null],
  34. ['banner', 'banner', BannerDTO::class, Constants::MODEL, null],
  35. ['black', 'black', BlackDTO::class, Constants::MODEL, null],
  36. ['appSignAt', 'app_sign_at', 'bail|integer', Constants::INTEGER, null],
  37. ['course', 'course', 'bail|integer', Constants::INTEGER, null],
  38. ['tags', 'tags', 'bail', null, null],
  39. ];
  40. }
  41. public function setResponse($user, $supvip, $bindFpdxfwh, $lockCard, $banner, $black, $appSignAt, $course, $tags)
  42. {
  43. $this->user = $user;
  44. $this->supvip = $supvip;
  45. $this->bindFpdxfwh = $bindFpdxfwh;
  46. $this->lockCard = $lockCard;
  47. $this->banner = $banner;
  48. $this->black = $black;
  49. $this->appSignAt = $appSignAt;
  50. $this->course = $course;
  51. $this->tags = $tags;
  52. }
  53. }