-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat: #61 내루트 조회, 인사이트 조회 mock-up API
- Loading branch information
Showing
8 changed files
with
163 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module version="4"> | ||
<component name="SonarLintModuleSettings"> | ||
<option name="uniqueId" value="3131378d-7bea-4eac-baef-5d9a4d371788" /> | ||
</component> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/kotlin/com/routebox/routebox/controller/route/dto/CheckProgressRouteResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.routebox.routebox.controller.route.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class CheckProgressRouteResponse( | ||
@Schema(description = "루트 ID, 기록중인 루트가 있는 경우 id 반환. 없는 경우 null 반환") | ||
val routeId: Long?, | ||
) |
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/com/routebox/routebox/controller/route/dto/GetMyRouteInsightResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.routebox.routebox.controller.route.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class GetMyRouteInsightResponse( | ||
@Schema(description = "내 루트 수") | ||
val routeCount: Int, | ||
@Schema(description = "내가 작성한 루트의 총 구매 수") | ||
val purchaseCount: Int, | ||
@Schema(description = "내가 작성한 루트의 총 댓글 수") | ||
val commentCount: Int, | ||
) |
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/com/routebox/routebox/controller/route/dto/GetMyRouteResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.routebox.routebox.controller.route.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class GetMyRouteResponse( | ||
@Schema(description = "내루트 목록") | ||
val result: List<RouteSimpleResponse>, | ||
) { | ||
companion object { | ||
fun from( | ||
result: List<RouteSimpleResponse>, | ||
): GetMyRouteResponse { | ||
return GetMyRouteResponse( | ||
result = result, | ||
) | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/com/routebox/routebox/controller/route/dto/RouteSimpleResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.routebox.routebox.controller.route.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class RouteSimpleResponse( | ||
@Schema(description = "루트 ID") | ||
val routeId: Long, | ||
@Schema(description = "루트 이름") | ||
val routeName: String?, | ||
@Schema(description = "루트 설명") | ||
val routeDescription: String?, | ||
@Schema(description = "루트 대표 이미지") | ||
val routeImageUrl: String?, | ||
@Schema(description = "루트 공개 여부") | ||
val isPublic: Boolean, | ||
@Schema(description = "구매 수") | ||
val purchaseCount: Int, | ||
@Schema(description = "댓글 수") | ||
val commentCount: Int, | ||
@Schema(description = "루트 생성일", example = "2021-08-01T00:00:00") | ||
val createdAt: String, | ||
) |