generated from pricelees/issue-pr-template
refactor: 미사용 API 응답 클래스 제거
This commit is contained in:
parent
13730d339c
commit
c5ab3098d4
@ -1,17 +0,0 @@
|
|||||||
package roomescape.common.dto.response
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema
|
|
||||||
|
|
||||||
@Schema(name = "API 성공 응답")
|
|
||||||
@JvmRecord
|
|
||||||
data class RoomescapeApiResponse<T>(
|
|
||||||
val data: T? = null
|
|
||||||
) {
|
|
||||||
companion object {
|
|
||||||
@JvmStatic
|
|
||||||
fun <T> success(data: T): RoomescapeApiResponse<T> = RoomescapeApiResponse(data)
|
|
||||||
|
|
||||||
@JvmStatic
|
|
||||||
fun success(): RoomescapeApiResponse<Void> = RoomescapeApiResponse(null)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
package roomescape.common.dto.response
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema
|
|
||||||
import roomescape.common.exception.ErrorType
|
|
||||||
|
|
||||||
@Schema(name = "API 에러 응답")
|
|
||||||
@JvmRecord
|
|
||||||
data class RoomescapeErrorResponse(
|
|
||||||
val errorType: ErrorType,
|
|
||||||
val message: String
|
|
||||||
)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user