-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] 추천장소리스트 API 옵셔널 처리 (#26) #30
Conversation
Merge branch 'develop' into fix/#26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💗
var walkingTime: SpotType.WalkingDistanceType = .fifteen | ||
|
||
var restaurantPrice: SpotType.RestaurantPriceType = .aboveFiftyThousand | ||
var restaurantPrice: SpotType.RestaurantPriceType = .aboveFiftyThousand // TODO: 옵셔널로 변경 | ||
|
||
var cafePrice: SpotType.CafePriceType = .aboveTenThousand | ||
var cafePrice: SpotType.CafePriceType = .aboveTenThousand // TODO: 옵셔널로 변경 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐿️
위에서 새롭게 선언한 default value 사용해주면 될 것 같아요 !
let defaultWalkingTime: SpotType.WalkingDistanceType = .fifteen | ||
let defaultRestaurantPrice: SpotType.RestaurantPriceType = .aboveFiftyThousand | ||
let defaultCafePrice: SpotType.CafePriceType = .aboveTenThousand |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐿️🐿️
이거 그냥 SpotType에 있는 각각의 enum에 static let default: Self = .fifteen
로 선언해서 사용하는 건 어떨까요?(불러올 때 SpotType.CafePriceType.default
) 이 방법이 아니더라도 default 값 구조체를 만든다던지 해서 구조화하면 좋을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 굿아이디어~~ 감사해용
Merge branch 'develop' into fix/#26
🐿️ Pull Requests
🪵 작업 브랜치
🥔 작업 내용
💥 To be sure
🌰 Resolve issue