-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/feed 01 #10
Feature/feed 01 #10
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.
μλ§μ μμ QueryDSLμ λ³΄κ³ μΌλ§λ κΉκ² κ³ λ―Όνμ μ§ νμΈνμ΅λλ€..
νΌλ κ΄λ ¨ λ‘μ§μ μ²μ 보λλ° μ 체μ μΌλ‘ κΉλνκ² μμ±νμ κ² κ°μ΅λλ€!
.imgUrlList(feed.getImageUrlList()) | ||
.postId(feed.getPost().getId()) | ||
.content(feed.getPost().getContent()) | ||
.likesCount(feed.getLikeCount()) |
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.
μΆνμ κ²μλ¬Ό λ°μ κ·νλ₯Ό ν΅ν΄ like_count μΉΌλΌμ μΆκ°νλ€λ©΄,
feed.getPost().getLikeCount() λ‘ λ°κΎΈλ©΄ λ κ² κ°μ΅λλ€ !
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.
λ΅ μΌλ¨ like_count λ°μ κ·νκ° μ μ©λλ©΄ 쿼리 μͺ½λ κ°μ΄ μμ ν΄μΌν κ² κ°μ΅λλ€!
|
||
// 0. νλ‘μ κ²μλ¬Ό / μΆμ² κ²μλ¬Ό κ°μλ₯Ό | ||
int followingCount = request.getMaxSize() * 100 / 70; | ||
int recommendCount = request.getMaxSize() * 100 / 30; |
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.
"νλ‘μν κ²μλ¬Όμ΄ μλ€λ©΄ 3ν μ μΆμ² κ²μλ¬Όλ§ κ°μ Έμ¨λ€" κ° μ κ° μ΄ν΄νκ² λ§μκΉμ?
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.
μμ μ΄ λΆλΆμ μ’ λ μμΈμ²λ¦¬κ° λμΌνλ λΆλΆμ΄ μμ΄μ μ λͺ» λμ΄μλκ² λ§μ΅λλ€ :)
λλ΅μ μΌλ‘ μ°μ μ 3ν μ μΆμ² κ²μλ¬ΌμΌλ‘ μ‘°ν©νλ€~ κ° κΈ°μ΄μ μΈ μμ΄λμ΄λΌμ λλ΅ μ λ κ² μμ±λμ΄μκ³ ,
Feed-02 λ‘ μμ
μ€μΈ λΈλμΉμμ μ΄μ λν μμ μμ
μ μ§νμ€μ΄λΌμ μ΄ λΆλΆμ λλ΅μ μΈ λΉμ¨λ‘ μ‘°ν©λλ€λ κ²λ§ μ΄ν΄ν΄μ£Όμλ©΄ λ κ² κ°μμ!
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.
μν- νμΈνμ΅λλ€! κ°μ¬ν©λλ€ :)
μλ¬ fix ν΄μ£Όμ μ pr μ¬λ €μ£Όμ ¨λ€μ! querydslμ½λκΉμ§ λ§μ΄ λ°°μλλ€.. κ³ μνμ ¨μ΅λλ€! |
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.
μ£Όμμ΄ μΈμΈνκ² λ¬λ €μμ΄μ μ΄ν΄νκΈ° νΈνλκ² κ°μ΅λλ€!
*/ | ||
@Getter | ||
@Builder | ||
@AllArgsConstructor(access = AccessLevel.PROTECTED) |
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.
jpa λ‘ κ΄λ¦¬λμ§ μμΌλ©΄ protected λ₯Ό κ±Έμ΄μ£Όμ§ μμλ λλ€κ³ μκ³ μλλ°
νΉμ λ λ€λ₯Έ μ΄μ κ° μλμ§ κΆκΈν©λλ€
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.
μ λΆμλμ§ κ³ λ―Όμ ν΄λ΄€λλ°, μ μκ°μλ 볡λΆμ νλ©΄μ κ°μ΄ λ€μ΄κ°κ±°μ§ μΆμ΅λλ€. μ΄ λΆλΆμ μμ ν΄μ λ€μ PRμ λ°μνκ² μ΅λλ€ :)
π κ³Όμ μ€λͺ
Feed μμ² μ μ λ¬νλ λ λΆλ₯(νλ‘μ κ²μλ¬Ό / μΆμ² κ²μλ¬Ό) μ€, νλ‘μ κ²μλ¬Όμ λν λ©μλ ꡬν λ° ν μ€νΈ μ½λ μΆκ°
κΈ°ν μμν μ€λ₯ μμ
π©βπ» μꡬ μ¬νκ³Ό ꡬν λ΄μ©
β PR ν¬μΈνΈ & κΆκΈν μ