UpdateMessage.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. namespace App\Generated\V1_1\Messages\Pair;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class UpdateMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $pairId;
  10. protected $km;
  11. protected $lng;
  12. protected $lat;
  13. protected $location;
  14. protected $sex;
  15. protected $sxo;
  16. protected $minAge;
  17. protected $maxAge;
  18. /**
  19. * 报名ID
  20. * @return int
  21. */
  22. public function getPairId()
  23. {
  24. return $this->pairId;
  25. }
  26. /**
  27. * 范围:km
  28. * @return int
  29. */
  30. public function getKm()
  31. {
  32. return $this->km;
  33. }
  34. /**
  35. * 经度
  36. * @return string
  37. */
  38. public function getLng()
  39. {
  40. return $this->lng;
  41. }
  42. /**
  43. * 纬度
  44. * @return string
  45. */
  46. public function getLat()
  47. {
  48. return $this->lat;
  49. }
  50. /**
  51. * 地理位置
  52. * @return string
  53. */
  54. public function getLocation()
  55. {
  56. return $this->location;
  57. }
  58. /**
  59. * 性别:1=男,2=女
  60. * @return int
  61. */
  62. public function getSex()
  63. {
  64. return $this->sex;
  65. }
  66. /**
  67. * 性取向:1=男,2=女 ...
  68. * @return int
  69. */
  70. public function getSxo()
  71. {
  72. return $this->sxo;
  73. }
  74. /**
  75. * 匹配最小年龄
  76. * @return int
  77. */
  78. public function getMinAge()
  79. {
  80. return $this->minAge;
  81. }
  82. /**
  83. * 匹配最大年龄
  84. * @return int
  85. */
  86. public function getMaxAge()
  87. {
  88. return $this->maxAge;
  89. }
  90. public function requestRules()
  91. {
  92. return [
  93. ['pairId', 'pair_id', 'bail|integer', Constants::INTEGER, null],
  94. ['km', 'km', 'bail|integer', Constants::INTEGER, null],
  95. ['lng', 'lng', 'bail|string', Constants::STRING, null],
  96. ['lat', 'lat', 'bail|string', Constants::STRING, null],
  97. ['location', 'location', 'bail|string', Constants::STRING, null],
  98. ['sex', 'sex', 'bail|integer', Constants::INTEGER, null],
  99. ['sxo', 'sxo', 'bail|integer', Constants::INTEGER, null],
  100. ['minAge', 'min_age', 'bail|integer', Constants::INTEGER, null],
  101. ['maxAge', 'max_age', 'bail|integer', Constants::INTEGER, null],
  102. ];
  103. }
  104. public function responseRules()
  105. {
  106. return [
  107. ];
  108. }
  109. public function setResponse()
  110. {
  111. }
  112. }