Skip to content

Commit

Permalink
#42 취향찾기 API 오류 수정 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
doyeonk429 committed Aug 16, 2024
1 parent 6b889e4 commit b6831f9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
1 change: 0 additions & 1 deletion Drink-EG/Drink-EG/Resources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ import UIKit
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


}

1 change: 0 additions & 1 deletion Drink-EG/Drink-EG/Resources/Constant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ struct Constants {

struct API {
static let baseURL = "https://drinkeg.com"

}

struct Design {
Expand Down
2 changes: 1 addition & 1 deletion Drink-EG/Drink-EG/Resources/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// 화면을 구성하는 UIWindow 인스턴스 생성
let window = UIWindow(windowScene: windowScene)
// 실제 첫 화면이 되는 MainViewController 인스턴스 생성
let vc = MainTabBarViewController()
let vc = EnterLoginViewController()
// NavigationController을 사용할 경우, MainViewController를 rootViewController로 갖는 NavigationController을 생성해야한다.
let navigationController = UINavigationController(rootViewController: vc)
navigationController.isNavigationBarHidden = true
Expand Down
10 changes: 5 additions & 5 deletions Drink-EG/Drink-EG/Sources/Datas/MemberInfoRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
import Foundation

struct MemberInfoRequest : Codable {
let userName : String
let name : String
let isNewbie : Bool
let monthPrice : Int
let wineSort : [String]
let wineNation : [String]
let wineArea : [String]
let wineVariety : [String]
let region : String

init(isNewbie: Bool, monthPrice: Int, wineSort: [String], wineNation: [String], wineVariety: [String], region: String, userName: String) {
init(isNewbie: Bool, monthPrice: Int, wineSort: [String], wineArea: [String], wineVariety: [String], region: String, name: String) {
self.isNewbie = isNewbie
self.monthPrice = monthPrice
self.wineSort = wineSort
self.wineNation = wineNation
self.wineArea = wineArea
self.wineVariety = wineVariety
self.region = region
self.userName = userName
self.name = name
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ struct APIResponseMemberResponse : Codable {
let isSuccess : Bool
let code : String
let message : String
let result : MemberResponse
let result : MemberResponse?
}

struct MemberResponse : Codable {
let id : Int
let name : String
Expand All @@ -21,7 +22,7 @@ struct MemberResponse : Codable {
let isNewbie : Bool
let monthPriceMax : Int
let wineSort : [String]
let wineNation : [String]
let wineArea : [String]
let wineVariety : [String]
let region : String
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ import Moya

class LoginViewController: UIViewController, UITextFieldDelegate {

static var isFirstLogin : Bool = true
public static var isFirstLogin : Bool = true

let provider = MoyaProvider<LoginAPI>()
public var userID : String?
public var userPW : String?
var loginDTO : JoinNLoginRequest?
public static var isFirstLogin : Bool = false

let loginButton = UIButton(type: .system)
let joinButton = UIButton(type: .system)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import UIKit
import Moya

class ThirdVarietyTasteTestViewController: UIViewController {

var variety: [String] = ["까베르네소비뇽", "샤도네이", "메를로", "까베르네프랑", "피노누아", "쉬라즈", "쇼비뇽 블랑", "그르나슈", "말벡", "산지오베제", "모스카토", "리슬링", "템프라니요", "네비올로", "블랜드", "쁘띠베르도", "무르베드르", "카르메너르", "기타"]
var selectedIndexPaths: [IndexPath] = []
private var selectedVariety : [String] = []
Expand Down Expand Up @@ -158,10 +157,10 @@ class ThirdVarietyTasteTestViewController: UIViewController {
isNewbie: selectionMng.isNewbie,
monthPrice: selectionMng.monthPrice,
wineSort: selectionMng.wineSort,
wineNation: selectionMng.wineNation,
wineArea: selectionMng.wineNation,
wineVariety: selectionMng.wineVariety,
region: selectionMng.userAddr,
userName: selectionMng.userName
name: selectionMng.userName
)
}

Expand All @@ -188,8 +187,8 @@ class ThirdVarietyTasteTestViewController: UIViewController {
print("유저 선택 정보가 없습니다.")
completion(false)
}

}

}

extension ThirdVarietyTasteTestViewController: UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
Expand Down

0 comments on commit b6831f9

Please sign in to comment.