diff --git a/Projects/Domains/NoticeDomain/Interface/Enum/NoticeType.swift b/Projects/Domains/NoticeDomain/Interface/Enum/NoticeType.swift index 52c1b5f91..991118b2c 100644 --- a/Projects/Domains/NoticeDomain/Interface/Enum/NoticeType.swift +++ b/Projects/Domains/NoticeDomain/Interface/Enum/NoticeType.swift @@ -8,7 +8,7 @@ import Foundation -public enum NoticeType: Int { - case popup = 1 // 공지팝업 +public enum NoticeType: String { + case popup // 공지팝업 case all // 전체공지 } diff --git a/Projects/Domains/NoticeDomain/Sources/API/NoticeAPI.swift b/Projects/Domains/NoticeDomain/Sources/API/NoticeAPI.swift index 0bd4bc81c..4a22d4389 100644 --- a/Projects/Domains/NoticeDomain/Sources/API/NoticeAPI.swift +++ b/Projects/Domains/NoticeDomain/Sources/API/NoticeAPI.swift @@ -28,8 +28,8 @@ extension NoticeAPI: WMAPI { public var urlPath: String { switch self { - case .fetchNotice: - return "/list" + case let .fetchNotice(type): + return "/\(type.rawValue)" case .fetchNoticeCategories: return "/categories" } @@ -48,7 +48,6 @@ extension NoticeAPI: WMAPI { case let .fetchNotice(type): return .requestParameters( parameters: [ - "type": type.rawValue, "os": "ios", "version": Bundle.main .object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? ""