261022_02_ENH: Class에서 record로 변경가능한 Dto들 record로 변경

This commit is contained in:
2026-10-22 10:01:39 +09:00
parent c4ea839df3
commit 486966fe73
61 changed files with 324 additions and 444 deletions

View File

@@ -32,12 +32,12 @@ public class LogController {
ShareLinkDto link =
(ShareLinkDto) servletRequest.getAttribute(KartConstant.REQUEST_LINK_ATTRIBUTE);
if (link != null
&& (link.getProjectType() != request.getProjectType()
|| !link.getPkey().equals(request.getPkey()))) {
&& (link.projectType() != request.projectType()
|| !link.pkey().equals(request.pkey()))) {
throw BusinessException.forbidden("EXTERNAL_SCOPE_DENIED", "공유 프로젝트의 방문 로그만 기록할 수 있습니다.");
}
logService.writeVisitLog(
request.getProjectType(), request.getPkey(), request.getLogContent(), ctx);
request.projectType(), request.pkey(), request.logContent(), ctx);
return "PASS";
}
}