Skip to content

Commit

Permalink
⚡️ :: [#509] path 경로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
KangTaeHoon committed Jun 10, 2024
1 parent d9a52aa commit 880dc83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Projects/Domains/NoticeDomain/Interface/Enum/NoticeType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

public enum NoticeType: Int {
case popup = 1 // 공지팝업
public enum NoticeType: String {
case popup // 공지팝업
case all // 전체공지
}
5 changes: 2 additions & 3 deletions Projects/Domains/NoticeDomain/Sources/API/NoticeAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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 ?? ""
Expand Down

0 comments on commit 880dc83

Please sign in to comment.