-
Notifications
You must be signed in to change notification settings - Fork 0
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
정보수정제안 v1 MR #172
정보수정제안 v1 MR #172
Changes from all commits
ddce006
061f169
ed97da7
ced382c
48d68ef
e05e4bf
0760300
36bfe00
3857ff1
0cf856a
b17a9f0
4bc4441
8bd073a
1abef05
3ac264e
1d4f0ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ | |
package us.wedemy.eggeum.android.domain.model.place | ||
|
||
public data class ProductEntity( | ||
val name: String, | ||
val price: Int, | ||
var name: String, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. entity Paramter 를 var 로 변경하신 이유가 있으신가요 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ProposeCafeInfoViewModel]에서
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. todo There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 객체를 복사해서 변경 하는 .copy() 같은 함수 사용하면 var로 선언하지 않아도 값 자체를 변경할 수 있습니다. uiState.update { it.copy() 이런식으로 } 내부 값을 변경하는 함수가 main 모듈의 UserInfoViewModel 같은 곳에 사용되고 있는데 참고해보시면 좋을 것 같아요 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 다음에 반영해볼게요 |
||
var price: Int, | ||
) |
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.
해당 companion object 내에 함수(of) 가 잘 이해가 안되는데 어떤 역할을 하는 함수인가요?
mapper 의 역할이라면 기존의 방식과 동일하게 바꾸면 좋을것 같아요 (mapper 패키지내에 mapper 를 만들어주는)
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.
viewModel에서 데이터 관리하면, 없어져야 할 부분이라 생각하는데
이렇게 많은 변수를 다뤄본 적이 없어서 그냥 빌더패턴으로 객체 만들어서 넘겼습니다.