feat(character): 캐릭터 메인 화면 구현 및 Combine 기반 리팩터링

- 배너/최근/신규/큐레이션 섹션 UI 구성 및 데이터 바인딩
- 네트워크 이미지 로더를 Kingfisher(KFImage)로 교체하여 캐싱/재시도 지원
- CharacterApi에 토큰 헤더 포함, GET /api/chat/character/main 연동
This commit is contained in:
Yu Sung
2025-08-29 20:58:57 +09:00
parent 1488ed5b89
commit 4dd1866169
15 changed files with 528 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
//
// CharacterRepository.swift
// SodaLive
//
// Created by klaus on 8/29/25.
//
import Foundation
import CombineMoya
import Combine
import Moya
class CharacterRepository {
private let api = MoyaProvider<CharacterApi>()
func getCharacterMain() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getCharacterHome)
}
}