261022_02_ENH: Class에서 record로 변경가능한 Dto들 record로 변경
This commit is contained in:
@@ -44,8 +44,8 @@ public class LogService {
|
||||
ProjectRefDto project, String title, JsonNode content, RequestUserContext ctx) {
|
||||
var pageInfo = objectMapper.createObjectNode();
|
||||
// The existing frontend calls the v2 endpoint, which stores projectCode rather than PKEY.
|
||||
pageInfo.put("projectCode", project.getPkey());
|
||||
pageInfo.put("projectType", project.getProjectType().getCode());
|
||||
pageInfo.put("projectCode", project.pkey());
|
||||
pageInfo.put("projectType", project.projectType().getCode());
|
||||
pageInfo.put("LOGTITLE", title);
|
||||
pageInfo.set("LOGCONTENT", normalizeContent(content));
|
||||
try {
|
||||
@@ -64,7 +64,7 @@ public class LogService {
|
||||
if (projectType == null || !hasKey) {
|
||||
throw BusinessException.badRequest("프로젝트 유형과 키는 함께 입력하거나 모두 생략해 주세요.");
|
||||
}
|
||||
return new ProjectRefDto(projectType, pkey).getPkey();
|
||||
return new ProjectRefDto(projectType, pkey).pkey();
|
||||
}
|
||||
|
||||
private JsonNode normalizeContent(JsonNode content) {
|
||||
|
||||
Reference in New Issue
Block a user