feat(chat-room-bg): 배경 이미지 변경 기능 추가
This commit is contained in:
@@ -12,6 +12,7 @@ enum CharacterApi {
|
||||
case getCharacterHome
|
||||
case getCharacterDetail(characterId: Int)
|
||||
case getCharacterImageList(characterId: Int, page: Int, size: Int)
|
||||
case getMyCharacterImageList(characterId: Int64, page: Int, size: Int)
|
||||
}
|
||||
|
||||
extension CharacterApi: TargetType {
|
||||
@@ -27,6 +28,9 @@ extension CharacterApi: TargetType {
|
||||
|
||||
case .getCharacterImageList:
|
||||
return "/api/chat/character/image/list"
|
||||
|
||||
case .getMyCharacterImageList:
|
||||
return "/api/chat/character/image/list"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +50,16 @@ extension CharacterApi: TargetType {
|
||||
],
|
||||
encoding: URLEncoding.queryString
|
||||
)
|
||||
|
||||
case .getMyCharacterImageList(let characterId, let page, let size):
|
||||
return .requestParameters(
|
||||
parameters: [
|
||||
"characterId": characterId,
|
||||
"page": page,
|
||||
"size": size
|
||||
],
|
||||
encoding: URLEncoding.queryString
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user