Skip to content

Commit c173492

Browse files
committed
refactor: final 삭제 및 setter 제거
1 parent 6db6309 commit c173492

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/main/java/dmu/dasom/api/domain/news/dto/NewsResponseDto.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
public class NewsResponseDto {
1111

1212
@Schema(description = "소식 ID", example = "1")
13-
private final Long id;
13+
private Long id;
1414

1515
@Schema(description = "뉴스 제목", example = "제목")
16-
private final String title;
16+
private String title;
1717

1818
@Schema(description = "뉴스 내용", example = "내용")
19-
private final String content;
19+
private String content;
2020

2121
@Schema(description = "작성일", example = "2025-02-14T12:00:00")
22-
private final LocalDateTime createdAt;
22+
private LocalDateTime createdAt;
2323

2424
@Schema(description = "뉴스 이미지 URL", example = "http://example.com/image.jpg", nullable = true)
25-
private final String imageUrl;
25+
private String imageUrl;
2626

2727
public NewsResponseDto(Long id, String title, String content, LocalDateTime createdAt, String imageUrl) {
2828
this.id = id;

src/main/java/dmu/dasom/api/domain/news/entity/NewsEntity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import lombok.*;
1010

1111
@Getter
12-
@Setter
1312
@Entity
1413
@NoArgsConstructor
1514
@AllArgsConstructor

0 commit comments

Comments
 (0)