Skip to content

Commit 3401ade

Browse files
chore: rename collection labels to saerok (#54)
1 parent bf3b101 commit 3401ade

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

src/main/java/apu/saerok_admin/web/AdminAuditLogController.java

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,28 @@ public class AdminAuditLogController {
3030
private static final Logger log = LoggerFactory.getLogger(AdminAuditLogController.class);
3131
private static final int DEFAULT_PAGE_SIZE = 20;
3232
private static final List<Integer> PAGE_SIZE_OPTIONS = List.of(10, 20, 50);
33-
private static final Map<String, ActionPresentation> ACTION_PRESENTATIONS = Map.of(
34-
"REPORT_IGNORED", new ActionPresentation("신고 무시", "신고를 추가 조치 없이 마감했습니다.", "text-bg-secondary"),
35-
"COLLECTION_DELETED", new ActionPresentation("컬렉션 삭제", "신고된 컬렉션을 삭제했습니다.", "text-bg-danger"),
36-
"COMMENT_DELETED", new ActionPresentation("댓글 삭제", "신고된 댓글을 삭제했습니다.", "text-bg-danger")
33+
private static final Map<String, ActionPresentation> ACTION_PRESENTATIONS = Map.ofEntries(
34+
Map.entry("REPORT_IGNORED", new ActionPresentation("신고 무시", "신고를 추가 조치 없이 마감했습니다.", "text-bg-secondary")),
35+
Map.entry("COLLECTION_DELETED", new ActionPresentation("새록 삭제", "신고된 새록을 삭제했습니다.", "text-bg-danger")),
36+
Map.entry("COMMENT_DELETED", new ActionPresentation("댓글 삭제", "신고된 댓글을 삭제했습니다.", "text-bg-danger")),
37+
Map.entry("AD_CREATED", new ActionPresentation("광고 등록", "새 광고를 등록했습니다.", "text-bg-success")),
38+
Map.entry("AD_UPDATED", new ActionPresentation("광고 수정", "기존 광고 정보를 수정했습니다.", "text-bg-info")),
39+
Map.entry("AD_DELETED", new ActionPresentation("광고 삭제", "광고를 삭제했습니다.", "text-bg-danger")),
40+
Map.entry("SLOT_CREATED", new ActionPresentation("광고 위치 등록", "새 광고 위치를 등록했습니다.", "text-bg-success")),
41+
Map.entry("SLOT_UPDATED", new ActionPresentation("광고 위치 수정", "광고 위치 정보를 수정했습니다.", "text-bg-info")),
42+
Map.entry("SLOT_DELETED", new ActionPresentation("광고 위치 삭제", "광고 위치를 삭제했습니다.", "text-bg-danger")),
43+
Map.entry("AD_PLACEMENT_CREATED", new ActionPresentation("광고 스케줄 등록", "새 광고 스케줄을 등록했습니다.", "text-bg-success")),
44+
Map.entry("AD_PLACEMENT_UPDATED", new ActionPresentation("광고 스케줄 수정", "광고 스케줄을 수정했습니다.", "text-bg-info")),
45+
Map.entry("AD_PLACEMENT_DELETED", new ActionPresentation("광고 스케줄 삭제", "광고 스케줄을 삭제했습니다.", "text-bg-danger"))
3746
);
38-
private static final Map<String, String> TARGET_LABELS = Map.of(
39-
"REPORT_COLLECTION", "컬렉션 신고",
40-
"REPORT_COMMENT", "댓글 신고",
41-
"COLLECTION", "컬렉션",
42-
"COMMENT", "댓글"
47+
private static final Map<String, String> TARGET_LABELS = Map.ofEntries(
48+
Map.entry("REPORT_COLLECTION", "새록 신고"),
49+
Map.entry("REPORT_COMMENT", "댓글 신고"),
50+
Map.entry("COLLECTION", "새록"),
51+
Map.entry("COMMENT", "댓글"),
52+
Map.entry("AD", "광고"),
53+
Map.entry("SLOT", "광고 위치"),
54+
Map.entry("AD_PLACEMENT", "광고 스케줄")
4355
);
4456
private static final String UNKNOWN_ACTION_LABEL = "기록되지 않은 작업";
4557
private static final String UNKNOWN_ACTION_DESCRIPTION = "정의되지 않은 관리자 활동입니다.";

0 commit comments

Comments
 (0)