Skip to content

Conversation

@thinkySide
Copy link
Contributor

public struct AnswerListOfQuestion: Decodable, Sendable {
    public let total: Int
    public let size: Int
    public let content: [Content]
    public let numberOfElements: Int
    public let threshold: String
    public let hasNext: Bool
    
    public struct Content: Decodable, Sendable {
        public let answerId: Int
        public let writerId: Int
        public let profileImage: String?
        public let nickname: String
        public let writerGeneration: String
        public let content: String
        public let isMine: Bool
        public let isReported: Bool
        public let isLiked: Bool? // ⭐️ 요거 지금 왜인지 모르겠는데 null로 오는 것 때문에 운영 앱에서 디코딩 에러가 뜹니다. 일단 요렇게 두고 나중에 조치하는걸루
        public let writeAt: String
        public let commentCount: Int // ⭐️ 댓글 개수
        public let heartCount: Int // ⭐️ 좋아요 개수
    }
}

@thinkySide thinkySide self-assigned this May 14, 2025
@thinkySide thinkySide linked an issue May 14, 2025 that may be closed by this pull request
@thinkySide thinkySide merged commit 9524815 into develop May 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

답변 좋아요 및 댓글 개수 API 업데이트

1 participant