-
Notifications
You must be signed in to change notification settings - Fork 153
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
๐ 2๋จ๊ณ - ๋ฆฌํฉํฐ๋ง(๋ฉ๋ด) #159
base: lehdqlsl
Are you sure you want to change the base?
Conversation
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.
์๊ตฌ์ฌํญ ๊ตฌํ ์ํด์ฃผ์
ง์ต๋๋ค ๐
๋ช๊ฐ์ง ๊ณ ๋ฏผ๊ฑฐ๋ฆฌ๋ฅผ ๋จ๊ฒจ๋์๋๋ฐ ํ์ธ ๋ถํ๋๋ ค์ !
this.menuProducts = createMenuProducts; | ||
} | ||
|
||
private void checkExpensive(Price price, MenuProducts menuProducts) { |
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.
MenuProduct์ ์ง์ ๋ ๊ฐ๊ฒฉ์ด ํ์์ ์ ์ฌ์ฉ๊ฐ๋ฅํ ๊ฐ๊ฒฉ์ธ์ง ์ ํจ์ฑ ๊ฒ์ฌ๊ฐ ํ์ํ์ง ์์๊น์ ?
์๋ฅผ ๋ ๋ค๋ฉด ํ์์ ์ MenuProduct๋ Request ๋ฐ์ดํฐ์ ๋ํ ์ ํจ์ฑ ๊ฒ์ฌ๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค.
Product์ ๊ฐ๊ฒฉ์ด ๋ณ๊ฒฝ๋์์ ๊ฒฝ์ฐ ์ ๋ฌ๋ฐ๋ ๊ฐ์ ๊ทธ๋๋ก ์ฌ์ฉํ๊ธฐ์ ๋ฌด๋ฆฌ๊ฐ ์์๊ฒ ๊ฐ์์.
์ด๋ฌํ ์ ํฉ์ฑ์ ๋ณด์ฅํ๊ธฐ ์ํด์ ์ด๋ค ๋
ธ๋ ฅ์ด ํ์ํ ์ง ๊ณ ๋ฏผํด๋ณด์ธ์ ๐
this.displayed = false; | ||
} | ||
|
||
public void display() { |
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.
๋ง์ฐฌ๊ฐ์ง๋ก display ์์ ์ Product์ ๊ฐ๊ฒฉ์ด ๋ณ๊ฒฝ๋์์ ๊ฒฝ์ฐ ๋ฐ์ดํฐ์ ์ ํฉ์ฑ์ ๋ณด์ฅํ์ง ๋ชปํ๋ ๊ตฌ์กฐ์
๋๋ค.
domain service๋๋ api client ๋ฅผ ํตํด ์ ํฉ์ฑ์ ๋ณด์ฅํด๋ณด๋๊ฑด ์ด๋จ๊น์ ?
} | ||
} | ||
|
||
class MenuProducts { |
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.
์ผ๊ธ ์ปฌ๋ ์ ์ ํ์ผ์ ๋ถ๋ฆฌํด๋ณด๋๊ฒ์ด ์ด๋จ๊น์ ?
๊ฐ์๋ฅผ ๋ฃ๊ณ ๋๋ step1 ๋ฏธ์ ์ ์์ ์๋ชปํ์๋ค์!
์ ๋ถํ๋๋ฆฝ๋๋ค.