12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace App\Generated\Controllers\V1;
- use App\Http\Services\V1\UserHomeService;
- use App\Generated\V1\Messages\UserHome\GetPopularityMessage;
- use App\Generated\V1\Messages\UserHome\GetMyLikeListMessage;
- use App\Http\Controllers\Controller;
- use App\Generated\V1\Messages\UserHome\GetLikeMeListMessage;
- use App\Generated\V1\Messages\UserHome\RemindComplementCardMessage;
- use App\Generated\V1\Messages\UserHome\GetVisitorListMessage;
- use DB;
- class UserHomeController extends Controller
- {
- public $handler;
- public function __construct(UserHomeService $handler)
- {
- $this->handler = $handler;
- }
- public function getPopularity(GetPopularityMessage $message)
- {
- $message->validateInput();
- $this->handler->getPopularity($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function remindComplementCard(RemindComplementCardMessage $message)
- {
- $message->validateInput();
- $this->handler->remindComplementCard($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getVisitorList(GetVisitorListMessage $message)
- {
- $message->validateInput();
- $this->handler->getVisitorList($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getMyLikeList(GetMyLikeListMessage $message)
- {
- $message->validateInput();
- $this->handler->getMyLikeList($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getLikeMeList(GetLikeMeListMessage $message)
- {
- $message->validateInput();
- $this->handler->getLikeMeList($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- }
|