-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature/#763] hot post #778
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5dbc22d
ui #763: feat hot post xml
chattymin 2d44d25
feat #763: feat hot-post api
chattymin ca46b71
feat #763: feat hot-post with appService api
chattymin d927d9c
feat #763: fix interceptor error
chattymin 1eb957a
chore #763: change name
chattymin b83be99
chore #763: delete unused function
chattymin 6f96bfa
feat #763: apply webView
chattymin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
app/src/main/java/org/sopt/official/data/model/home/HotPostResponse.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,21 @@ | ||
package org.sopt.official.data.model.home | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
import org.sopt.official.domain.entity.home.HotPostEntity | ||
|
||
@Serializable | ||
data class HotPostResponse( | ||
@SerialName("title") | ||
val title: String, | ||
@SerialName("content") | ||
val content: String, | ||
@SerialName("url") | ||
val url: String | ||
) { | ||
fun toEntity(): HotPostEntity = HotPostEntity( | ||
title = this.title, | ||
content = this.content, | ||
url = this.url | ||
) | ||
} |
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
7 changes: 7 additions & 0 deletions
7
app/src/main/java/org/sopt/official/domain/entity/home/HotPostEntity.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,7 @@ | ||
package org.sopt.official.domain.entity.home | ||
|
||
data class HotPostEntity( | ||
val title: String = "", | ||
val content: String = "", | ||
val url: String = "" | ||
) |
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
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
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,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="12dp" | ||
android:height="12dp" | ||
android:viewportWidth="12" | ||
android:viewportHeight="12"> | ||
<path | ||
android:pathData="M10.5,6.99C10.5,5.514 9.243,3.482 8.743,2.565C8.665,2.422 8.455,2.427 8.384,2.572C8.26,2.829 8.081,3.199 7.878,3.574C7.823,3.677 7.674,3.686 7.606,3.591C7.013,2.758 6.416,1.834 6.02,1.105C5.952,0.98 5.776,0.963 5.685,1.073C4.029,3.083 2,5.161 2,7.354C2,9.198 3.125,10.511 4.77,10.995C4.883,11.028 4.97,10.897 4.891,10.812C4.597,10.495 4.427,10.071 4.427,9.605C4.427,8.89 5.346,7.564 5.903,6.901C6.083,6.688 6.416,6.688 6.596,6.901C7.154,7.564 8.073,8.89 8.073,9.605C8.073,10.055 7.914,10.465 7.64,10.778C7.562,10.866 7.652,10.997 7.765,10.959C9.39,10.413 10.499,8.989 10.499,7.159C10.499,7.143 10.498,7.127 10.498,7.111C10.499,7.071 10.499,7.031 10.499,6.991L10.5,6.99Z" | ||
android:fillColor="#F77234"/> | ||
</vector> |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
playground
가 들어가면 header를 넣지 않는 코드였습니다. 이 코드로 인해 403에러가 발생하고 있었습니다.이번에 구현한 api에 playground가 들어가지만, header가 필요해 수정했습니다.
api명세서를 전부 뒤져보니 playground가 들어가는 api가
auth/playground
만 존재하여 해당 방법으로 수정했습니다.