123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?php
- namespace App\Generated\Controllers\V1;
- use App\Generated\V1\Messages\User\StoreSelfPartnerMessage;
- use App\Generated\V1\Messages\User\ToggleTagMessage;
- use App\Generated\V1\Messages\User\UpdateProfileMessage;
- use App\Http\Controllers\Controller;
- use App\Http\Services\V1\UserService;
- use App\Generated\V1\Messages\User\CreateAnswerMessage;
- use App\Generated\V1\Messages\User\GetQuestionListMessage;
- use App\Generated\V1\Messages\User\GetQuestionAnswerListMessage;
- use App\Generated\V1\Messages\User\SelectCoverMessage;
- use App\Generated\V1\Messages\User\DeletePhotosMessage;
- use App\Generated\V1\Messages\User\GetFpdxProfileMessage;
- use App\Generated\V1\Messages\User\ProfileMessage;
- use App\Generated\V1\Messages\User\GetQuestionInfoMessage;
- use DB;
- class UserController extends Controller
- {
- public $handler;
- public function __construct(UserService $handler)
- {
- $this->handler = $handler;
- }
- public function selectCover(SelectCoverMessage $message)
- {
- $message->validateInput();
- $this->handler->selectCover($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function deletePhotos(DeletePhotosMessage $message)
- {
- $message->validateInput();
- $this->handler->deletePhotos($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function createAnswer(CreateAnswerMessage $message)
- {
- $message->validateInput();
- $this->handler->createAnswer($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getQuestionAnswerList(GetQuestionAnswerListMessage $message)
- {
- $message->validateInput();
- $this->handler->getQuestionAnswerList($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getQuestionInfo(GetQuestionInfoMessage $message)
- {
- $message->validateInput();
- $this->handler->getQuestionInfo($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getQuestionList(GetQuestionListMessage $message)
- {
- $message->validateInput();
- $this->handler->getQuestionList($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function storeSelfPartner(StoreSelfPartnerMessage $message)
- {
- $message->validateInput();
- $this->handler->storeSelfPartner($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function toggleTag(ToggleTagMessage $message)
- {
- $message->validateInput();
- $this->handler->toggleTag($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function updateProfile(UpdateProfileMessage $message)
- {
- $message->validateInput();
- $this->handler->updateProfile($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getFpdxProfile(GetFpdxProfileMessage $message)
- {
- $message->validateInput();
- $this->handler->getFpdxProfile($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function profile(ProfileMessage $message)
- {
- $message->validateInput();
- $this->handler->profile($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- }
|