AdminPartnerDTO.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. class AdminPartnerDTO extends DTO
  7. {
  8. use ValueHelper;
  9. protected $id;
  10. protected $uid;
  11. protected $photo_src;
  12. protected $photo_1;
  13. protected $photo_2;
  14. protected $photo_3;
  15. protected $photo_4;
  16. /**
  17. * 卡片id
  18. * @return int
  19. */
  20. public function getId()
  21. {
  22. return $this->id;
  23. }
  24. /**
  25. * uid
  26. * @return int
  27. */
  28. public function getUid()
  29. {
  30. return $this->uid;
  31. }
  32. /**
  33. * 照片地址
  34. * @return string|null
  35. */
  36. public function getPhoto_src()
  37. {
  38. return $this->photo_src;
  39. }
  40. /**
  41. * @return string|null
  42. */
  43. public function getPhoto_1()
  44. {
  45. return $this->photo_1;
  46. }
  47. /**
  48. * @return string|null
  49. */
  50. public function getPhoto_2()
  51. {
  52. return $this->photo_2;
  53. }
  54. /**
  55. * @return string|null
  56. */
  57. public function getPhoto_3()
  58. {
  59. return $this->photo_3;
  60. }
  61. /**
  62. * @return string|null
  63. */
  64. public function getPhoto_4()
  65. {
  66. return $this->photo_4;
  67. }
  68. public function setId($id)
  69. {
  70. $this->id = $id;
  71. }
  72. public function setUid($uid)
  73. {
  74. $this->uid = $uid;
  75. }
  76. public function setPhoto_src($photo_src)
  77. {
  78. $this->photo_src = $photo_src;
  79. }
  80. public function setPhoto_1($photo_1)
  81. {
  82. $this->photo_1 = $photo_1;
  83. }
  84. public function setPhoto_2($photo_2)
  85. {
  86. $this->photo_2 = $photo_2;
  87. }
  88. public function setPhoto_3($photo_3)
  89. {
  90. $this->photo_3 = $photo_3;
  91. }
  92. public function setPhoto_4($photo_4)
  93. {
  94. $this->photo_4 = $photo_4;
  95. }
  96. public function getAttributeMap()
  97. {
  98. return [
  99. ['id', 'id', 'bail|integer', Constants::INTEGER, null],
  100. ['uid', 'uid', 'bail|integer', Constants::INTEGER, null],
  101. ['photo_src', 'photo_src', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  102. ['photo_1', 'photo_1', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  103. ['photo_2', 'photo_2', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  104. ['photo_3', 'photo_3', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  105. ['photo_4', 'photo_4', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  106. ];
  107. }
  108. }