Skip to content

Commit

Permalink
fix: APITarget, DTO 수정(#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozohoy committed May 21, 2024
1 parent 729c370 commit a5449d9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extension APITarget.All: TargetType {
}

var path: String {
"/api"
"api/"
}

var method: Moya.Method {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extension APITarget.Products: TargetType {

var headers: [String : String]? {
switch self {
case .getPreorderInfo(let getPreorderInfoRequest):
case .getPreorderInfo:
return ["Content-Type": "application/json"]
case .getDetailProduct:
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@

import Foundation

import Moya

/// NameSpace
enum APITarget { }
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ extension DTO {

extension DTO.GetHomeResponse {
struct HomeImage: Codable {
let topBanner: [String]
let monthlyEvents: [Banner]
let topBanners: [String]
let monthlyEvents: Banner
let bottomBanners: [String]
}
}

extension DTO.GetHomeResponse.HomeImage {
struct Banner: Codable {
let mainBanners: String
let subBanners: String
let mainBanners: [String]
let subBanners: [String]
}
}

0 comments on commit a5449d9

Please sign in to comment.