From 73a408ff2a6a106a1e9183de9bfb733357b18fb6 Mon Sep 17 00:00:00 2001 From: swdevsw98 <102571918+swdevsw98@users.noreply.github.com> Date: Thu, 25 Jan 2024 16:00:28 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix=20:=20=EB=8C=93=EA=B8=80=EC=97=90=20?= =?UTF-8?q?=EC=9B=90=EA=B8=80=EC=9D=98=20Title,=20topic,=20id=EB=8F=84=20?= =?UTF-8?q?=ED=95=A8=EA=BB=98=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/article/dto/response/CommentResponse.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/example/daitssuapi/domain/article/dto/response/CommentResponse.kt b/src/main/kotlin/com/example/daitssuapi/domain/article/dto/response/CommentResponse.kt index 6ddd930..9948ce5 100644 --- a/src/main/kotlin/com/example/daitssuapi/domain/article/dto/response/CommentResponse.kt +++ b/src/main/kotlin/com/example/daitssuapi/domain/article/dto/response/CommentResponse.kt @@ -1,5 +1,6 @@ package com.example.daitssuapi.domain.article.dto.response +import com.example.daitssuapi.domain.article.enums.Topic import com.example.daitssuapi.domain.article.model.entity.Comment import java.time.LocalDateTime @@ -10,7 +11,10 @@ data class CommentResponse( val content: String, val originalCommentId: Long? = null, val createdAt: LocalDateTime, - val updatedAt: LocalDateTime + val updatedAt: LocalDateTime, + val title: String? = null, + val topic: Topic? = null, + val articleId: Long? = null ) { companion object { fun of(comment: Comment): CommentResponse = with(comment) { @@ -21,7 +25,10 @@ data class CommentResponse( content = content, originalCommentId = originalId, createdAt = createdAt, - updatedAt = updatedAt + updatedAt = updatedAt, + title = article?.title, + topic = article?.topic, + articleId = article?.id ) } } From 91410eaa391031ab2ae726ae49b3442585737ee9 Mon Sep 17 00:00:00 2001 From: HwanGonJang Date: Fri, 2 Feb 2024 19:22:50 +0900 Subject: [PATCH 2/2] feat: add ping --- .../daitssuapi/domain/auth/controller/AuthController.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/com/example/daitssuapi/domain/auth/controller/AuthController.kt b/src/main/kotlin/com/example/daitssuapi/domain/auth/controller/AuthController.kt index 00cbd16..014d4e5 100644 --- a/src/main/kotlin/com/example/daitssuapi/domain/auth/controller/AuthController.kt +++ b/src/main/kotlin/com/example/daitssuapi/domain/auth/controller/AuthController.kt @@ -25,6 +25,11 @@ class AuthController( private val userService: UserService, private val argumentResolver: ArgumentResolver ) { + @GetMapping + fun ping(): String { + return "pong" + } + @Operation( summary = "회원가입", description = "회원가입 API입니다.",