RecommendPairApplyListContactDTO.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?php
  2. namespace App\Generated\V1_1\DTOs;
  3. use App\Generated\V1_1\Enums\Gender;
  4. use Kamicloud\StubApi\Concerns\ValueHelper;
  5. use Kamicloud\StubApi\DTOs\DTO;
  6. use App\Generated\V1_1\Enums\RecommendPairApplyListContactLockState;
  7. use Kamicloud\StubApi\Utils\Constants;
  8. use App\Generated\V1_1\Enums\WorkState;
  9. use App\Generated\V1_1\Enums\Constellation;
  10. use App\Generated\V1_1\Enums\RecommendPairApplyListContactInviteState;
  11. class RecommendPairApplyListContactDTO extends DTO
  12. {
  13. use ValueHelper;
  14. protected $uid;
  15. protected $headimgurl;
  16. protected $nickname;
  17. protected $age;
  18. protected $sex;
  19. protected $star;
  20. protected $workState;
  21. protected $matchScore;
  22. protected $lockState;
  23. protected $inviteState;
  24. /**
  25. * 用户id
  26. * @return int
  27. */
  28. public function getUid()
  29. {
  30. return $this->uid;
  31. }
  32. /**
  33. * 头像
  34. * @return string
  35. */
  36. public function getHeadimgurl()
  37. {
  38. return $this->headimgurl;
  39. }
  40. /**
  41. * 昵称
  42. * @return string
  43. */
  44. public function getNickname()
  45. {
  46. return $this->nickname;
  47. }
  48. /**
  49. * 年龄
  50. * @return int
  51. */
  52. public function getAge()
  53. {
  54. return $this->age;
  55. }
  56. /**
  57. * 性别
  58. * @return mixed
  59. */
  60. public function getSex()
  61. {
  62. return $this->sex;
  63. }
  64. /**
  65. * 星座
  66. * @return mixed
  67. */
  68. public function getStar()
  69. {
  70. return $this->star;
  71. }
  72. /**
  73. * 工作状态
  74. * @return mixed
  75. */
  76. public function getWorkState()
  77. {
  78. return $this->workState;
  79. }
  80. /**
  81. * 匹配度
  82. * @return int
  83. */
  84. public function getMatchScore()
  85. {
  86. return $this->matchScore;
  87. }
  88. /**
  89. * 解锁状态
  90. * @return mixed
  91. */
  92. public function getLockState()
  93. {
  94. return $this->lockState;
  95. }
  96. /**
  97. * 邀请状态
  98. * @return mixed
  99. */
  100. public function getInviteState()
  101. {
  102. return $this->inviteState;
  103. }
  104. public function setUid($uid)
  105. {
  106. $this->uid = $uid;
  107. }
  108. public function setHeadimgurl($headimgurl)
  109. {
  110. $this->headimgurl = $headimgurl;
  111. }
  112. public function setNickname($nickname)
  113. {
  114. $this->nickname = $nickname;
  115. }
  116. public function setAge($age)
  117. {
  118. $this->age = $age;
  119. }
  120. public function setSex($sex)
  121. {
  122. $this->sex = $sex;
  123. }
  124. public function setStar($star)
  125. {
  126. $this->star = $star;
  127. }
  128. public function setWorkState($workState)
  129. {
  130. $this->workState = $workState;
  131. }
  132. public function setMatchScore($matchScore)
  133. {
  134. $this->matchScore = $matchScore;
  135. }
  136. public function setLockState($lockState)
  137. {
  138. $this->lockState = $lockState;
  139. }
  140. public function setInviteState($inviteState)
  141. {
  142. $this->inviteState = $inviteState;
  143. }
  144. public function getAttributeMap()
  145. {
  146. return [
  147. ['uid', 'uid', 'bail|integer', Constants::INTEGER, null],
  148. ['headimgurl', 'headimgurl', 'bail|string', Constants::STRING, null],
  149. ['nickname', 'nickname', 'bail|string', Constants::STRING, null],
  150. ['age', 'age', 'bail|integer', Constants::INTEGER, null],
  151. ['sex', 'sex', Gender::class, Constants::ENUM, null],
  152. ['star', 'star', Constellation::class, Constants::ENUM, null],
  153. ['workState', 'work_state', WorkState::class, Constants::ENUM, null],
  154. ['matchScore', 'match_score', 'bail|integer', Constants::INTEGER, null],
  155. ['lockState', 'lock_state', RecommendPairApplyListContactLockState::class, Constants::ENUM, null],
  156. ['inviteState', 'invite_state', RecommendPairApplyListContactInviteState::class, Constants::ENUM, null],
  157. ];
  158. }
  159. }