Skip to content

Commit

Permalink
refactor: change field name [contents --> content] (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpeel5839 authored Oct 27, 2024
1 parent 7468f93 commit 14f36dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public record ChatV2Response(
String name,
String contents,
String content,
MessageType messageType,
Timestamp timestamp,
Boolean isOwner
Expand All @@ -20,7 +20,7 @@ public static ChatV2Response of(
) {
return new ChatV2Response(
message.getName(),
message.getContents(),
message.getContent(),
message.getMessageType(),
new Timestamp(message.getTimestamp()),
isOwner
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package mafia.mafiatogether.chat.application.dto.response;

import java.sql.Timestamp;

import mafia.mafiatogether.chat.domain.Message;
import mafia.mafiatogether.job.domain.jobtype.JobType;

public record ChatResponse(
String name,
String contents,
String content,
Timestamp timestamp,
Boolean isOwner,
JobType job
Expand All @@ -21,7 +22,7 @@ public static ChatResponse of(
) {
return new ChatResponse(
message.getName(),
message.getContents(),
message.getContent(),
new Timestamp(message.getTimestamp()),
isOwner,
filteringMafia(isOwner, isMafia, jobType)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mafia/mafiatogether/chat/domain/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Message {
private static final String LEAVE_MESSAGE_FORMAT = "%s님이 퇴장하셨습니다.";

private String name;
private String contents;
private String content;
private MessageType messageType;
private long timestamp;

Expand Down

0 comments on commit 14f36dd

Please sign in to comment.