ChangePartner2NewDTO.php 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace App\Generated\V1_1\DTOs;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\DTOs\DTO;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. use App\Generated\V1_1\Enums\ChangePartner2NewType;
  7. class ChangePartner2NewDTO extends DTO
  8. {
  9. use ValueHelper;
  10. protected $partnerId;
  11. protected $toType;
  12. /**
  13. * 卡片id
  14. * @return int
  15. */
  16. public function getPartnerId()
  17. {
  18. return $this->partnerId;
  19. }
  20. /**
  21. * @return mixed
  22. */
  23. public function getToType()
  24. {
  25. return $this->toType;
  26. }
  27. public function setPartnerId($partnerId)
  28. {
  29. $this->partnerId = $partnerId;
  30. }
  31. public function setToType($toType)
  32. {
  33. $this->toType = $toType;
  34. }
  35. public function getAttributeMap()
  36. {
  37. return [
  38. ['partnerId', 'partner_id', 'bail|integer', Constants::INTEGER, null],
  39. ['toType', 'to_type', ChangePartner2NewType::class, Constants::ENUM, null],
  40. ];
  41. }
  42. }