Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/QappleRepository/API/QappleAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ enum QappleAPI {
case delete(answerId: Int64)

/// 질문에 대한 답변 조회
case listOfQuestion(questionId: Int64, threshold: String?, pageSize: Int32 = 25)
case listOfQuestion(questionId: Int64, threshold: Int?, pageSize: Int32 = 25)

/// 답변 생성
case create(questionId: Int64)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public struct AnswerListOfQuestion: Decodable, Sendable {
public let content: String
public let isMine: Bool
public let isReported: Bool
public let isLiked: Bool
public let isLiked: Bool?
public let writeAt: String
public let commentCount: Int
public let heartCount: Int
}
}
2 changes: 1 addition & 1 deletion Sources/QappleRepository/UseCase/AnswerAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public enum AnswerAPI: Sendable {
/// 특정 질문에 대한 답변리스트를 조회하는 API입니다.
public static func fetchListOfQuestion(
questionId: Int,
threshold: String?,
threshold: Int?,
pageSize: Int,
server: Server,
accessToken: String
Expand Down
2 changes: 1 addition & 1 deletion Tests/QappleRepositoryTests/AnswerAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct AnswerAPITests {
@Test("질문에 대한 답변 리스트 테스트")
func fetchListOfQuestion() async throws {
let _ = try await AnswerAPI.fetchListOfQuestion(
questionId: 1,
questionId: 100,
threshold: nil,
pageSize: 30,
server: .test,
Expand Down