ContactUserDTO.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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 Kamicloud\StubApi\Utils\Constants;
  7. use App\Generated\V1_1\Enums\WorkState;
  8. use App\Generated\V1_1\Enums\Constellation;
  9. class ContactUserDTO extends DTO
  10. {
  11. use ValueHelper;
  12. protected $uid;
  13. protected $headimgurl;
  14. protected $nickname;
  15. protected $note;
  16. protected $im_account;
  17. protected $age;
  18. protected $sex;
  19. protected $star;
  20. protected $work_state;
  21. protected $weixin;
  22. protected $qq;
  23. protected $identity_auth;
  24. protected $wx_auth;
  25. protected $be_vip_at;
  26. protected $supvip_endat;
  27. /**
  28. * 用户id
  29. * @return int
  30. */
  31. public function getUid()
  32. {
  33. return $this->uid;
  34. }
  35. /**
  36. * 头像
  37. * @return string
  38. */
  39. public function getHeadimgurl()
  40. {
  41. return $this->headimgurl;
  42. }
  43. /**
  44. * 昵称
  45. * @return string
  46. */
  47. public function getNickname()
  48. {
  49. return $this->nickname;
  50. }
  51. /**
  52. * 备注
  53. * @return string|null
  54. */
  55. public function getNote()
  56. {
  57. return $this->note;
  58. }
  59. /**
  60. * imAccount
  61. * @return string|null
  62. */
  63. public function getIm_account()
  64. {
  65. return $this->im_account;
  66. }
  67. /**
  68. * 年龄
  69. * @return string|null
  70. */
  71. public function getAge()
  72. {
  73. return $this->age;
  74. }
  75. /**
  76. * 性别
  77. * @return mixed|null
  78. */
  79. public function getSex()
  80. {
  81. return $this->sex;
  82. }
  83. /**
  84. * 星座
  85. * @return mixed|null
  86. */
  87. public function getStar()
  88. {
  89. return $this->star;
  90. }
  91. /**
  92. * 工作状态
  93. * @return mixed|null
  94. */
  95. public function getWork_state()
  96. {
  97. return $this->work_state;
  98. }
  99. /**
  100. * @return string|null
  101. */
  102. public function getWeixin()
  103. {
  104. return $this->weixin;
  105. }
  106. /**
  107. * @return string|null
  108. */
  109. public function getQq()
  110. {
  111. return $this->qq;
  112. }
  113. /**
  114. * @return string|null
  115. */
  116. public function getIdentity_auth()
  117. {
  118. return $this->identity_auth;
  119. }
  120. /**
  121. * 微信认证
  122. * @return int
  123. */
  124. public function getWx_auth()
  125. {
  126. return $this->wx_auth;
  127. }
  128. /**
  129. * 成为会员时间
  130. * @return int
  131. */
  132. public function getBe_vip_at()
  133. {
  134. return $this->be_vip_at;
  135. }
  136. /**
  137. * 超级会员到期时间
  138. * @return int
  139. */
  140. public function getSupvip_endat()
  141. {
  142. return $this->supvip_endat;
  143. }
  144. public function setUid($uid)
  145. {
  146. $this->uid = $uid;
  147. }
  148. public function setHeadimgurl($headimgurl)
  149. {
  150. $this->headimgurl = $headimgurl;
  151. }
  152. public function setNickname($nickname)
  153. {
  154. $this->nickname = $nickname;
  155. }
  156. public function setNote($note)
  157. {
  158. $this->note = $note;
  159. }
  160. public function setIm_account($im_account)
  161. {
  162. $this->im_account = $im_account;
  163. }
  164. public function setAge($age)
  165. {
  166. $this->age = $age;
  167. }
  168. public function setSex($sex)
  169. {
  170. $this->sex = $sex;
  171. }
  172. public function setStar($star)
  173. {
  174. $this->star = $star;
  175. }
  176. public function setWork_state($work_state)
  177. {
  178. $this->work_state = $work_state;
  179. }
  180. public function setWeixin($weixin)
  181. {
  182. $this->weixin = $weixin;
  183. }
  184. public function setQq($qq)
  185. {
  186. $this->qq = $qq;
  187. }
  188. public function setIdentity_auth($identity_auth)
  189. {
  190. $this->identity_auth = $identity_auth;
  191. }
  192. public function setWx_auth($wx_auth)
  193. {
  194. $this->wx_auth = $wx_auth;
  195. }
  196. public function setBe_vip_at($be_vip_at)
  197. {
  198. $this->be_vip_at = $be_vip_at;
  199. }
  200. public function setSupvip_endat($supvip_endat)
  201. {
  202. $this->supvip_endat = $supvip_endat;
  203. }
  204. public function getAttributeMap()
  205. {
  206. return [
  207. ['uid', 'uid', 'bail|integer', Constants::INTEGER, null],
  208. ['headimgurl', 'headimgurl', 'bail|string', Constants::STRING, null],
  209. ['nickname', 'nickname', 'bail|string', Constants::STRING, null],
  210. ['note', 'note', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  211. ['im_account', 'im_account', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  212. ['age', 'age', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  213. ['sex', 'sex', Gender::class, Constants::ENUM | Constants::OPTIONAL, null],
  214. ['star', 'star', Constellation::class, Constants::ENUM | Constants::OPTIONAL, null],
  215. ['work_state', 'work_state', WorkState::class, Constants::ENUM | Constants::OPTIONAL, null],
  216. ['weixin', 'weixin', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  217. ['qq', 'qq', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  218. ['identity_auth', 'identity_auth', 'bail|nullable|string', Constants::STRING | Constants::OPTIONAL, null],
  219. ['wx_auth', 'wx_auth', 'bail|integer', Constants::INTEGER, null],
  220. ['be_vip_at', 'be_vip_at', 'bail|integer', Constants::INTEGER, null],
  221. ['supvip_endat', 'supvip_endat', 'bail|integer', Constants::INTEGER, null],
  222. ];
  223. }
  224. }