feat(character-detail): 상세 화면 도입 및 네비게이션/API 연동

This commit is contained in:
Yu Sung
2025-09-02 01:10:41 +09:00
parent 26271e421d
commit f11120b8d0
12 changed files with 571 additions and 10 deletions

View File

@@ -0,0 +1,44 @@
//
// CharacterDetailResponse.swift
// SodaLive
//
// Created by klaus on 9/1/25.
//
struct CharacterDetailResponse: Decodable {
let characterId: Int
let name: String
let description: String
let mbti: String?
let imageUrl: String
let personalities: CharacterPersonalityResponse?
let backgrounds: CharacterBackgroundResponse?
let tags: String
let originalTitle: String?
let originalLink: String?
let characterType: CharacterType
let others: [OtherCharacter]
let latestComment: CharacterCommentResponse?
let totalComments: Int
}
enum CharacterType: String, Decodable {
case Clone, Character
}
struct OtherCharacter: Decodable {
let characterId: Int
let name: String
let imageUrl: String
let tags: String
}
struct CharacterPersonalityResponse: Decodable {
let trait: String
let description: String
}
struct CharacterBackgroundResponse: Decodable {
let topic: String
let description: String
}