๐ 2๋จ๊ณ - ๋ฆฌํฉํฐ๋ง(๋ฉ๋ด)#159
๐ 2๋จ๊ณ - ๋ฆฌํฉํฐ๋ง(๋ฉ๋ด)#159lehdqlsl wants to merge 14 commits intonext-step:lehdqlslfrom
Conversation
sah3122
left a comment
There was a problem hiding this comment.
์๊ตฌ์ฌํญ ๊ตฌํ ์ํด์ฃผ์
ง์ต๋๋ค ๐
๋ช๊ฐ์ง ๊ณ ๋ฏผ๊ฑฐ๋ฆฌ๋ฅผ ๋จ๊ฒจ๋์๋๋ฐ ํ์ธ ๋ถํ๋๋ ค์ !
| this.menuProducts = createMenuProducts; | ||
| } | ||
|
|
||
| private void checkExpensive(Price price, MenuProducts menuProducts) { |
There was a problem hiding this comment.
MenuProduct์ ์ง์ ๋ ๊ฐ๊ฒฉ์ด ํ์์ ์ ์ฌ์ฉ๊ฐ๋ฅํ ๊ฐ๊ฒฉ์ธ์ง ์ ํจ์ฑ ๊ฒ์ฌ๊ฐ ํ์ํ์ง ์์๊น์ ?
์๋ฅผ ๋ ๋ค๋ฉด ํ์์ ์ MenuProduct๋ Request ๋ฐ์ดํฐ์ ๋ํ ์ ํจ์ฑ ๊ฒ์ฌ๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค.
Product์ ๊ฐ๊ฒฉ์ด ๋ณ๊ฒฝ๋์์ ๊ฒฝ์ฐ ์ ๋ฌ๋ฐ๋ ๊ฐ์ ๊ทธ๋๋ก ์ฌ์ฉํ๊ธฐ์ ๋ฌด๋ฆฌ๊ฐ ์์๊ฒ ๊ฐ์์.
์ด๋ฌํ ์ ํฉ์ฑ์ ๋ณด์ฅํ๊ธฐ ์ํด์ ์ด๋ค ๋
ธ๋ ฅ์ด ํ์ํ ์ง ๊ณ ๋ฏผํด๋ณด์ธ์ ๐
| this.displayed = false; | ||
| } | ||
|
|
||
| public void display() { |
There was a problem hiding this comment.
๋ง์ฐฌ๊ฐ์ง๋ก display ์์ ์ Product์ ๊ฐ๊ฒฉ์ด ๋ณ๊ฒฝ๋์์ ๊ฒฝ์ฐ ๋ฐ์ดํฐ์ ์ ํฉ์ฑ์ ๋ณด์ฅํ์ง ๋ชปํ๋ ๊ตฌ์กฐ์
๋๋ค.
domain service๋๋ api client ๋ฅผ ํตํด ์ ํฉ์ฑ์ ๋ณด์ฅํด๋ณด๋๊ฑด ์ด๋จ๊น์ ?
| } | ||
| } | ||
|
|
||
| class MenuProducts { |
There was a problem hiding this comment.
์ผ๊ธ ์ปฌ๋ ์ ์ ํ์ผ์ ๋ถ๋ฆฌํด๋ณด๋๊ฒ์ด ์ด๋จ๊น์ ?
๊ฐ์๋ฅผ ๋ฃ๊ณ ๋๋ step1 ๋ฏธ์ ์ ์์ ์๋ชปํ์๋ค์!
์ ๋ถํ๋๋ฆฝ๋๋ค.