ThisDotE/InnerJoinUs

[Feature] Increase Article View Count

Closed this issue ยท 0 comments

๐Ÿ‘ฅ InnerJoinUs ํ”„๋กœ์ ํŠธ

โš™๏ธ Function: ๊ฒŒ์‹œ๊ธ€ ์ ‘๊ทผ ์‹œ ์กฐํšŒ์ˆ˜ +1

๐ŸŒ Purpose

๏ฟฝArticle View Count + 1์„ ํ†ตํ•ด ๊ฒŒ์‹œ๊ธ€ ์ ‘์† ์‹œ ์กฐํšŒ์ˆ˜๊ฐ€ 1 ๋Š˜์–ด๋‚˜๋Š” ๊ธฐ๋Šฅ ์ถ”๊ฐ€

๐ŸŒˆ ๊ธฐ๋Šฅ ๊ตฌํ˜„ ์ƒ์„ธ ๋‚ด์šฉ

  • Entity IncreaseViewCount ๋ฉ”์†Œ๋“œ ์ถ”๊ฐ€
  • selectArticleUser์— article.increaseViewCount(article.getArticleViewCount() + 1); ์ถ”๊ฐ€

๐Ÿ’ก ์ฐธ๊ณ ์‚ฌํ•ญ