12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace App\Generated\Controllers\V1;
- use App\Generated\V1\Messages\Notice\UpdateNoticeByKeyMessage;
- use App\Generated\V1\Messages\Notice\GetNoticeProfileListMessage;
- use App\Http\Services\V1\NoticeService;
- use App\Http\Controllers\Controller;
- use App\Generated\V1\Messages\Notice\UpdateNoticeByGroupMessage;
- use DB;
- use App\Generated\V1\Messages\Notice\GetNoticeByKeyToIntMessage;
- class NoticeController extends Controller
- {
- public $handler;
- public function __construct(NoticeService $handler)
- {
- $this->handler = $handler;
- }
- public function updateNoticeByGroup(UpdateNoticeByGroupMessage $message)
- {
- $message->validateInput();
- $this->handler->updateNoticeByGroup($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function updateNoticeByKey(UpdateNoticeByKeyMessage $message)
- {
- $message->validateInput();
- $this->handler->updateNoticeByKey($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getNoticeByKeyToInt(GetNoticeByKeyToIntMessage $message)
- {
- $message->validateInput();
- $this->handler->getNoticeByKeyToInt($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- public function getNoticeProfileList(GetNoticeProfileListMessage $message)
- {
- $message->validateInput();
- $this->handler->getNoticeProfileList($message);
- $message->validateOutput();
- return $message->getResponse();
- }
- }
|