From b3036333ac67f7ce8febb11c5797f9006380e484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=98=81=EC=9D=B8?= <0inn1220@gmail.com> Date: Sat, 22 Apr 2023 22:18:26 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20#199=20-=20=EC=B6=9C=EC=84=9D=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20Network=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Network/Sources/Service/AttendanceService.swift | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SOPT-iOS/Projects/Modules/Network/Sources/Service/AttendanceService.swift b/SOPT-iOS/Projects/Modules/Network/Sources/Service/AttendanceService.swift index 7e41530f..e24dc470 100644 --- a/SOPT-iOS/Projects/Modules/Network/Sources/Service/AttendanceService.swift +++ b/SOPT-iOS/Projects/Modules/Network/Sources/Service/AttendanceService.swift @@ -9,6 +9,7 @@ import Foundation import Combine +import Core import Alamofire import Moya @@ -18,24 +19,24 @@ public protocol AttendanceService { func fetchAttendanceSchedule() -> AnyPublisher, Error> func fetchAttendanceScore() -> AnyPublisher, Error> func fetchAttendanceRound(lectureId: Int) -> AnyPublisher, Error> - func postAttendance(lectureRoundId: Int, code: Int) -> AnyPublisher, Error> + func postAttendance(lectureRoundId: Int, code: String) -> AnyPublisher, Error> } extension DefaultAttendanceService: AttendanceService { public func fetchAttendanceSchedule() -> AnyPublisher, Error> { - test.requestObjectInCombine(AttendanceAPI.lecture) + opRequestObjectInCombine(AttendanceAPI.lecture) } public func fetchAttendanceScore() -> AnyPublisher, Error> { - requestObjectInCombine(AttendanceAPI.total) + opRequestObjectInCombine(AttendanceAPI.total) } public func fetchAttendanceRound(lectureId: Int) -> AnyPublisher, Error> { - requestObjectInCombine(AttendanceAPI.lectureRound(lectureId: lectureId)) + opRequestObjectInCombine(AttendanceAPI.lectureRound(lectureId: lectureId)) } - public func postAttendance(lectureRoundId: Int, code: Int) -> AnyPublisher, Error> { - requestObjectInCombine(AttendanceAPI.attend(lectureRoundId: lectureRoundId, code: code)) + public func postAttendance(lectureRoundId: Int, code: String) -> AnyPublisher, Error> { + opRequestObjectInCombine(AttendanceAPI.attend(lectureRoundId: lectureRoundId, code: code)) } }