service === null) { $this->service = service('boardservice'); } $this->addActionPaths('board'); } //Action작업관련 //기본 함수 작업 //Custom 추가 함수 public function latest(string $category): ResponseInterface { $this->action_init_process(__FUNCTION__); return $this->response->setJSON($this->service->getLatest($category)); } public function reqeusttask(): ResponseInterface { $this->action_init_process(__FUNCTION__); $auth_uid = $this->getAuthContext()->getUID(); if ($auth_uid === null) { throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생:로그인을 하지 않으셨습니다."); } return $this->response->setJSON($this->service->getRequestTaskCount($auth_uid)); } }