-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from mash-up-kr/yaeoni/my-profile
feat; 본인 프로필 조회 API 를 추가해요. (mock 응답)
- Loading branch information
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"local": { | ||
"host": "localhost:8080" | ||
}, | ||
"dev": { | ||
"host": "http://dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com" | ||
} | ||
} |
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
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
37 changes: 37 additions & 0 deletions
37
api/src/main/kotlin/com/mashup/dojo/dto/MyProfileResponse.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,37 @@ | ||
package com.mashup.dojo.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
@Schema(description = "프로필 응답 Response") | ||
data class MyProfileResponse( | ||
@Schema(description = "유저 id") | ||
val memberId: String, | ||
@Schema(description = "유저 프로필 이미지 url") | ||
val profileImageUrl: String, | ||
@Schema(description = "유저 이름") | ||
val memberName: String, | ||
@Schema(description = "유저 플랫폼") | ||
val platform: String, | ||
@Schema(description = "유저 기수") | ||
val ordinal: Int, | ||
@Schema(description = "유저가 받은 픽 개수") | ||
val pickCount: Int, | ||
@Schema(description = "유저의 친구 수") | ||
val friendCount: Int, | ||
@Schema(description = "소유한 코인 개수") | ||
val coinCount: Int, | ||
) { | ||
companion object { | ||
fun mock() = | ||
MyProfileResponse( | ||
memberId = "memberI123456754231", | ||
profileImageUrl = "https://t1.daumcdn.net/daumtop_chanel/op/20200723055344399.png", | ||
memberName = "낭은영", | ||
platform = "Product Design", | ||
ordinal = 14, | ||
pickCount = 8186, | ||
friendCount = 1925, | ||
coinCount = 3994 | ||
) | ||
} | ||
} |