ShareController.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace App\Generated\Controllers\V1_1;
  3. use App\Generated\V1_1\Messages\Share\LikeMeMessage;
  4. use App\Generated\V1_1\Messages\Share\PairApplyListShareHelpMessage;
  5. use App\Generated\V1_1\Messages\Share\PairVipCheckMessage;
  6. use App\Http\Controllers\Controller;
  7. use App\Generated\V1_1\Messages\Share\PairGetMessage;
  8. use App\Generated\V1_1\Messages\Share\LikeMeCheckMessage;
  9. use App\Http\Services\V1_1\ShareService;
  10. use DB;
  11. use App\Generated\V1_1\Messages\Share\LikeMeHistoryMessage;
  12. class ShareController extends Controller
  13. {
  14. public $handler;
  15. public function __construct(ShareService $handler)
  16. {
  17. $this->handler = $handler;
  18. }
  19. public function pairApplyListShareHelp(PairApplyListShareHelpMessage $message)
  20. {
  21. $message->validateInput();
  22. $this->handler->pairApplyListShareHelp($message);
  23. $message->validateOutput();
  24. return $message->getResponse();
  25. }
  26. public function likeMeHistory(LikeMeHistoryMessage $message)
  27. {
  28. $message->validateInput();
  29. $this->handler->likeMeHistory($message);
  30. $message->validateOutput();
  31. return $message->getResponse();
  32. }
  33. public function likeMeCheck(LikeMeCheckMessage $message)
  34. {
  35. $message->validateInput();
  36. $this->handler->likeMeCheck($message);
  37. $message->validateOutput();
  38. return $message->getResponse();
  39. }
  40. public function likeMe(LikeMeMessage $message)
  41. {
  42. $message->validateInput();
  43. $this->handler->likeMe($message);
  44. $message->validateOutput();
  45. return $message->getResponse();
  46. }
  47. public function pairVipCheck(PairVipCheckMessage $message)
  48. {
  49. $message->validateInput();
  50. $this->handler->pairVipCheck($message);
  51. $message->validateOutput();
  52. return $message->getResponse();
  53. }
  54. public function pairGet(PairGetMessage $message)
  55. {
  56. $message->validateInput();
  57. $this->handler->pairGet($message);
  58. $message->validateOutput();
  59. return $message->getResponse();
  60. }
  61. }