PairController.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?php
  2. namespace App\Generated\Controllers\V1_1;
  3. use App\Generated\V1_1\Messages\Pair\EnrollByEnergyMessage;
  4. use App\Generated\V1_1\Messages\Pair\EnrollByFreeMessage;
  5. use App\Generated\V1_1\Messages\Pair\GetActivityConductStageIdMessage;
  6. use App\Http\Controllers\Controller;
  7. use App\Generated\V1_1\Messages\Pair\GetActivityListMessage;
  8. use App\Http\Services\V1_1\PairService;
  9. use App\Generated\V1_1\Messages\Pair\GetAllTagsMessage;
  10. use App\Generated\V1_1\Messages\Pair\ConfirmBeAloneMessage;
  11. use App\Generated\V1_1\Messages\Pair\ActivityLastMessage;
  12. use App\Generated\V1_1\Messages\Pair\EnrollBySuperVipMessage;
  13. use App\Generated\V1_1\Messages\Pair\LastenrollMessage;
  14. use App\Generated\V1_1\Messages\Pair\GetAloneGroupMessage;
  15. use App\Generated\V1_1\Messages\Pair\AddScoreByEnergyMessage;
  16. use App\Generated\V1_1\Messages\Pair\AddScoreByOrderMessage;
  17. use App\Generated\V1_1\Messages\Pair\RefundMessage;
  18. use App\Generated\V1_1\Messages\Pair\ConfirmCpMessage;
  19. use App\Generated\V1_1\Messages\Pair\ActivityRecentMessage;
  20. use App\Generated\V1_1\Messages\Pair\OperationalLogMessage;
  21. use App\Generated\V1_1\Messages\Pair\KeepCpMessage;
  22. use App\Generated\V1_1\Messages\Pair\AddScoreBySuperVipMessage;
  23. use App\Generated\V1_1\Messages\Pair\EnrollByNextMessage;
  24. use App\Generated\V1_1\Messages\Pair\RegretsMessage;
  25. use App\Generated\V1_1\Messages\Pair\RemoveKeepCpMessage;
  26. use App\Generated\V1_1\Messages\Pair\UpdateMessage;
  27. use App\Generated\V1_1\Messages\Pair\GetRecommendPairApplyContactsMessage;
  28. use App\Generated\V1_1\Messages\Pair\ActivityInfoMessage;
  29. use App\Generated\V1_1\Messages\Pair\EnrollByPaymentMessage;
  30. use App\Generated\V1_1\Messages\Pair\GetKeepRoomMessage;
  31. use DB;
  32. class PairController extends Controller
  33. {
  34. public $handler;
  35. public function __construct(PairService $handler)
  36. {
  37. $this->handler = $handler;
  38. }
  39. public function getAloneGroup(GetAloneGroupMessage $message)
  40. {
  41. $message->validateInput();
  42. $this->handler->getAloneGroup($message);
  43. $message->validateOutput();
  44. return $message->getResponse();
  45. }
  46. public function removeKeepCp(RemoveKeepCpMessage $message)
  47. {
  48. $message->validateInput();
  49. $this->handler->removeKeepCp($message);
  50. $message->validateOutput();
  51. return $message->getResponse();
  52. }
  53. public function keepCp(KeepCpMessage $message)
  54. {
  55. $message->validateInput();
  56. $this->handler->keepCp($message);
  57. $message->validateOutput();
  58. return $message->getResponse();
  59. }
  60. public function getKeepRoom(GetKeepRoomMessage $message)
  61. {
  62. $message->validateInput();
  63. $this->handler->getKeepRoom($message);
  64. $message->validateOutput();
  65. return $message->getResponse();
  66. }
  67. public function confirmBeAlone(ConfirmBeAloneMessage $message)
  68. {
  69. $message->validateInput();
  70. $this->handler->confirmBeAlone($message);
  71. $message->validateOutput();
  72. return $message->getResponse();
  73. }
  74. public function operationalLog(OperationalLogMessage $message)
  75. {
  76. $message->validateInput();
  77. $this->handler->operationalLog($message);
  78. $message->validateOutput();
  79. return $message->getResponse();
  80. }
  81. public function regrets(RegretsMessage $message)
  82. {
  83. $message->validateInput();
  84. $this->handler->regrets($message);
  85. $message->validateOutput();
  86. return $message->getResponse();
  87. }
  88. public function confirmCp(ConfirmCpMessage $message)
  89. {
  90. $message->validateInput();
  91. $this->handler->confirmCp($message);
  92. $message->validateOutput();
  93. return $message->getResponse();
  94. }
  95. public function addScoreByEnergy(AddScoreByEnergyMessage $message)
  96. {
  97. $message->validateInput();
  98. $this->handler->addScoreByEnergy($message);
  99. $message->validateOutput();
  100. return $message->getResponse();
  101. }
  102. public function addScoreByOrder(AddScoreByOrderMessage $message)
  103. {
  104. $message->validateInput();
  105. $this->handler->addScoreByOrder($message);
  106. $message->validateOutput();
  107. return $message->getResponse();
  108. }
  109. public function addScoreBySuperVip(AddScoreBySuperVipMessage $message)
  110. {
  111. $message->validateInput();
  112. $this->handler->addScoreBySuperVip($message);
  113. $message->validateOutput();
  114. return $message->getResponse();
  115. }
  116. public function refund(RefundMessage $message)
  117. {
  118. $message->validateInput();
  119. $this->handler->refund($message);
  120. $message->validateOutput();
  121. return $message->getResponse();
  122. }
  123. public function update(UpdateMessage $message)
  124. {
  125. $message->validateInput();
  126. $this->handler->update($message);
  127. $message->validateOutput();
  128. return $message->getResponse();
  129. }
  130. public function enrollByNext(EnrollByNextMessage $message)
  131. {
  132. $message->validateInput();
  133. $this->handler->enrollByNext($message);
  134. $message->validateOutput();
  135. return $message->getResponse();
  136. }
  137. public function enrollByEnergy(EnrollByEnergyMessage $message)
  138. {
  139. $message->validateInput();
  140. $this->handler->enrollByEnergy($message);
  141. $message->validateOutput();
  142. return $message->getResponse();
  143. }
  144. public function enrollBySuperVip(EnrollBySuperVipMessage $message)
  145. {
  146. $message->validateInput();
  147. $this->handler->enrollBySuperVip($message);
  148. $message->validateOutput();
  149. return $message->getResponse();
  150. }
  151. public function enrollByPayment(EnrollByPaymentMessage $message)
  152. {
  153. $message->validateInput();
  154. $this->handler->enrollByPayment($message);
  155. $message->validateOutput();
  156. return $message->getResponse();
  157. }
  158. public function enrollByFree(EnrollByFreeMessage $message)
  159. {
  160. $message->validateInput();
  161. $this->handler->enrollByFree($message);
  162. $message->validateOutput();
  163. return $message->getResponse();
  164. }
  165. public function getAllTags(GetAllTagsMessage $message)
  166. {
  167. $message->validateInput();
  168. $this->handler->getAllTags($message);
  169. $message->validateOutput();
  170. return $message->getResponse();
  171. }
  172. public function getActivityList(GetActivityListMessage $message)
  173. {
  174. $message->validateInput();
  175. $this->handler->getActivityList($message);
  176. $message->validateOutput();
  177. return $message->getResponse();
  178. }
  179. public function lastenroll(LastenrollMessage $message)
  180. {
  181. $message->validateInput();
  182. $this->handler->lastenroll($message);
  183. $message->validateOutput();
  184. return $message->getResponse();
  185. }
  186. public function getActivityConductStageId(GetActivityConductStageIdMessage $message)
  187. {
  188. $message->validateInput();
  189. $this->handler->getActivityConductStageId($message);
  190. $message->validateOutput();
  191. return $message->getResponse();
  192. }
  193. public function activityInfo(ActivityInfoMessage $message)
  194. {
  195. $message->validateInput();
  196. $this->handler->activityInfo($message);
  197. $message->validateOutput();
  198. return $message->getResponse();
  199. }
  200. public function activityRecent(ActivityRecentMessage $message)
  201. {
  202. $message->validateInput();
  203. $this->handler->activityRecent($message);
  204. $message->validateOutput();
  205. return $message->getResponse();
  206. }
  207. public function activityLast(ActivityLastMessage $message)
  208. {
  209. $message->validateInput();
  210. $this->handler->activityLast($message);
  211. $message->validateOutput();
  212. return $message->getResponse();
  213. }
  214. public function getRecommendPairApplyContacts(GetRecommendPairApplyContactsMessage $message)
  215. {
  216. $message->validateInput();
  217. $this->handler->getRecommendPairApplyContacts($message);
  218. $message->validateOutput();
  219. return $message->getResponse();
  220. }
  221. }