fix(creator-channel): 콘텐츠 정렬 query 값을 고정한다
This commit is contained in:
@@ -1,9 +1,22 @@
|
|||||||
package kr.co.vividnext.sodalive.v2.common.data
|
package kr.co.vividnext.sodalive.v2.common.data
|
||||||
|
|
||||||
enum class ContentSort {
|
import androidx.annotation.Keep
|
||||||
LATEST,
|
import com.google.gson.annotations.SerializedName
|
||||||
POPULAR,
|
|
||||||
OWNED,
|
@Keep
|
||||||
PRICE_HIGH,
|
enum class ContentSort(val queryValue: String) {
|
||||||
PRICE_LOW
|
@SerializedName("LATEST")
|
||||||
|
LATEST("LATEST"),
|
||||||
|
|
||||||
|
@SerializedName("POPULAR")
|
||||||
|
POPULAR("POPULAR"),
|
||||||
|
|
||||||
|
@SerializedName("OWNED")
|
||||||
|
OWNED("OWNED"),
|
||||||
|
|
||||||
|
@SerializedName("PRICE_HIGH")
|
||||||
|
PRICE_HIGH("PRICE_HIGH"),
|
||||||
|
|
||||||
|
@SerializedName("PRICE_LOW")
|
||||||
|
PRICE_LOW("PRICE_LOW")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package kr.co.vividnext.sodalive.v2.creator.channel.data
|
|||||||
|
|
||||||
import io.reactivex.rxjava3.core.Single
|
import io.reactivex.rxjava3.core.Single
|
||||||
import kr.co.vividnext.sodalive.common.ApiResponse
|
import kr.co.vividnext.sodalive.common.ApiResponse
|
||||||
import kr.co.vividnext.sodalive.v2.common.data.ContentSort
|
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.audio.data.CreatorChannelAudioTabResponse
|
import kr.co.vividnext.sodalive.v2.creator.channel.audio.data.CreatorChannelAudioTabResponse
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.community.data.CreatorChannelCommunityTabResponse
|
import kr.co.vividnext.sodalive.v2.creator.channel.community.data.CreatorChannelCommunityTabResponse
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.community.detail.data.CreatorChannelCommunityCommentsResponse
|
import kr.co.vividnext.sodalive.v2.creator.channel.community.detail.data.CreatorChannelCommunityCommentsResponse
|
||||||
@@ -29,7 +28,7 @@ interface CreatorChannelApi {
|
|||||||
@Path("creatorId") creatorId: Long,
|
@Path("creatorId") creatorId: Long,
|
||||||
@Query("page") page: Int,
|
@Query("page") page: Int,
|
||||||
@Query("size") size: Int,
|
@Query("size") size: Int,
|
||||||
@Query("sort") sort: ContentSort,
|
@Query("sort") sort: String,
|
||||||
@Header("Authorization") authHeader: String
|
@Header("Authorization") authHeader: String
|
||||||
): Single<ApiResponse<CreatorChannelLiveTabResponse>>
|
): Single<ApiResponse<CreatorChannelLiveTabResponse>>
|
||||||
|
|
||||||
@@ -38,7 +37,7 @@ interface CreatorChannelApi {
|
|||||||
@Path("creatorId") creatorId: Long,
|
@Path("creatorId") creatorId: Long,
|
||||||
@Query("page") page: Int,
|
@Query("page") page: Int,
|
||||||
@Query("size") size: Int,
|
@Query("size") size: Int,
|
||||||
@Query("sort") sort: ContentSort,
|
@Query("sort") sort: String,
|
||||||
@Query("themeId") themeId: Long?,
|
@Query("themeId") themeId: Long?,
|
||||||
@Header("Authorization") authHeader: String
|
@Header("Authorization") authHeader: String
|
||||||
): Single<ApiResponse<CreatorChannelAudioTabResponse>>
|
): Single<ApiResponse<CreatorChannelAudioTabResponse>>
|
||||||
@@ -48,7 +47,7 @@ interface CreatorChannelApi {
|
|||||||
@Path("creatorId") creatorId: Long,
|
@Path("creatorId") creatorId: Long,
|
||||||
@Query("page") page: Int,
|
@Query("page") page: Int,
|
||||||
@Query("size") size: Int,
|
@Query("size") size: Int,
|
||||||
@Query("sort") sort: ContentSort,
|
@Query("sort") sort: String,
|
||||||
@Header("Authorization") authHeader: String
|
@Header("Authorization") authHeader: String
|
||||||
): Single<ApiResponse<CreatorChannelSeriesTabResponse>>
|
): Single<ApiResponse<CreatorChannelSeriesTabResponse>>
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class CreatorChannelRepository(
|
|||||||
creatorId = creatorId,
|
creatorId = creatorId,
|
||||||
page = page,
|
page = page,
|
||||||
size = size,
|
size = size,
|
||||||
sort = sort,
|
sort = sort.queryValue,
|
||||||
authHeader = token
|
authHeader = token
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ class CreatorChannelRepository(
|
|||||||
creatorId = creatorId,
|
creatorId = creatorId,
|
||||||
page = page,
|
page = page,
|
||||||
size = size,
|
size = size,
|
||||||
sort = sort,
|
sort = sort.queryValue,
|
||||||
themeId = themeId,
|
themeId = themeId,
|
||||||
authHeader = token
|
authHeader = token
|
||||||
)
|
)
|
||||||
@@ -63,7 +63,7 @@ class CreatorChannelRepository(
|
|||||||
creatorId = creatorId,
|
creatorId = creatorId,
|
||||||
page = page,
|
page = page,
|
||||||
size = size,
|
size = size,
|
||||||
sort = sort,
|
sort = sort.queryValue,
|
||||||
authHeader = token
|
authHeader = token
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user