From 880dc83f5521e6792bfdb6d0e4065ff9a8103534 Mon Sep 17 00:00:00 2001 From: KTH Date: Tue, 11 Jun 2024 01:24:19 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::=20[#509]=20path=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Domains/NoticeDomain/Interface/Enum/NoticeType.swift | 4 ++-- Projects/Domains/NoticeDomain/Sources/API/NoticeAPI.swift | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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 ?? ""