diff --git a/src/main/java/com/chat/yourway/dto/response/PrivateTopicInfoResponseDto.java b/src/main/java/com/chat/yourway/dto/response/PrivateTopicInfoResponseDto.java index d46af2f..acf0fa4 100644 --- a/src/main/java/com/chat/yourway/dto/response/PrivateTopicInfoResponseDto.java +++ b/src/main/java/com/chat/yourway/dto/response/PrivateTopicInfoResponseDto.java @@ -26,6 +26,7 @@ public class PrivateTopicInfoResponseDto { @Schema(description = "Created time") private LocalDateTime createdAt; + @Schema(description = "Unread messages from the users") private List unreadMessages; private LastMessageResponseDto lastMessage; diff --git a/src/main/java/com/chat/yourway/service/TopicService.java b/src/main/java/com/chat/yourway/service/TopicService.java index 8f65fb6..2692774 100644 --- a/src/main/java/com/chat/yourway/service/TopicService.java +++ b/src/main/java/com/chat/yourway/service/TopicService.java @@ -17,7 +17,6 @@ import com.chat.yourway.model.TopicScope; import com.chat.yourway.repository.jpa.TagRepository; import com.chat.yourway.repository.jpa.TopicRepository; -import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.mapstruct.Context; import org.springframework.context.annotation.Lazy;