service === null) { $this->service = service('boardservice'); } $this->addActionPaths('board'); } //Action작업관련 protected function getEntityClass(): string { return BoardEntity::class; } //기본 함수 작업 //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__); return $this->response->setJSON($this->service->getRequestTaskCount($this->getAuthContext()->getUID())); } }