-
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
Feature/read share board(wr9 25) #30
Conversation
ErrorCode.INVALID_PAGE_REQUEST
SharePost ShareProposal shareProposalLetter SharePostLike μν°ν° μΆκ° SharePostResponse DTO μΆκ°
shareProposalLetter
ShareProposal
νμ΄μ§λ‘ λͺ©λ‘ μ‘°ν
Controller , Service
ErrorCode - ,, λ€μ΄κ°κ±° μμ build.gradle - **/repository/** μ μΈν¨ν΄ μΆκ°
# Conflicts: # src/main/java/io/crops/warmletter/global/error/common/ErrorCode.java
SharePostResponse refactor
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.
κ³ μνμ ¨μ΅λλ€
μ 체μ μΌλ‘ BaseEntityμ BaseTimeEntityκ° μλͺ» νμ© λκ³ μλκ² κ°μμ.
ν΄λΉ ν
μ΄λΈμμ μμ±μ, μμ±μκ°, μμ μ, μμ μκ°μ νμλ‘ νλ μν°ν°μ΄λ©΄ BaseEntityλ₯Ό μμ
ν΄λΉ ν
μ΄λΈμμ μμ±μκ°, μμ μκ°μ νμλ‘ νλ μν°ν°μ΄λ©΄ BaseTimeEntityλ₯Ό μμ
ν μ΄λΈμͺ½μμλ ν΄λΉ νλλ₯Ό μ μΈνμ§ μμ. (μ΄κ² μΆμ ν΄λμ€λ₯Ό μ¬μ©νλ μ΄μ μ λλ€)
private String createdBy; | ||
|
||
private String updatedBy; |
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.
ν΄λΉλΆλΆμ μ΄λ―Έ BaseEntityμ μ μλμ΄ μκΈ° λλ¬Έμ μ§μ°μ μΌ ν κ² κ°μμ!
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.
λ΅ μμ νμμ΅λλ€. !
@Column(nullable = false) | ||
private String title; | ||
|
||
private String content; |
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.
μ΄λΆλΆ λΉμ¦λμ€ λ‘μ§μΌλ‘ μκ°ν΄λ³Ό λ,
νλ©΄ μμμ content κ΄λ ¨λ κ² λ§ μ κ² λμ΄μμμμμ.(νΌκ·Έλ§ μ°Έκ³ )
μΌλ¨ νλ‘ νΈλΆλ€μκ² μμ² μͺ½μμ titleμ μ¬μ©νμ€κ±΄μ§μ λν΄μ μ¬μ€λ³΄κ³ erd μμ νλ λ°©ν₯μΌλ‘ κ°μΌλ κ² κ°μ΅λλ€.
λ§μ½ titleμ μμ°κ³ νμ¬ νλ©΄ κ·Έλλ‘ κ°λ€κ³ νμ λ, 곡μ νΈμ§ κ²μνμ μ λͺ©μ μ΄λ»κ² μ€μ ν΄μ€κ±°λ λΌλ νμ μ£Όμ λ λμμΌ ν κ² κ°κ³ μ
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.
λ΅ μ΄ λΆλΆ λ°λ‘ μκΈ° λλμ΄ λ³΄κ² μ΅λλ€.
@Column(nullable = false) | ||
private Long shareProposalId; | ||
|
||
private boolean isActive = false; |
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.
boolean νμ μ κΈ°λ³Έ κ°μ falseλΌμ λͺ μμ μΌλ‘ μ΄κΈ°ν ν΄ μ€ νμλ μλ€κ³ μκ°ν©λλ€~
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.
λ§μ΅λλ€ !
@Builder | ||
public SharePost(Long shareProposalId, String title, String content) { | ||
this.shareProposalId = shareProposalId; | ||
this.title = title; | ||
this.content = content; | ||
} |
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.
μ²μ 곡μ νΈμ§ κ²μνμ κΈμ΄ λ±λ‘λ λ isActive(νμ±ν μ¬λΆ)κ°μ΄ trueλ‘ μ€μ μ΄ λμ΄μΌ κ²μνμ λ ΈμΆμ΄ λ ν λ° ν΄λΉ νλλ μμ±μμ λ£μ΄μΌ λ κ±° κ°μμ
κ·Έλ¦¬κ³ μΆνμ μ κ³ μ²λ¦¬μ λ°λΌμ κ²μκΈμ΄ λΉνμ±ν λλ κ²½μ°λ μμμμ κ·Έλλ₯Ό μν΄μ inactive(), active()λΌλ ν¨μλ₯Ό 미리 λ§λ€μ΄ λλ μ’μ§ μμκΉ? λΌλ μκ°μ΄ μμ΅λλ€
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.
κ²μλ¬Ό μμΈ μ‘°ν APIμμ ν΄λΉ ν¨μλ₯Ό μΆκ°νλ €κ³ νμ΅λλ€ ! μ°μ , 미리 λ£μ΄λλ κ±Έλ‘ νκ² μ΅λλ€ ! μΆκ°λ‘, Repositoryμμ 곡μ κ²μν λͺ©λ‘μ μ‘°νν λ
μ΄λ―Έ trueμΈ κ²μκΈλ§ ν΄λΉ DBμ μ‘΄μ¬νκ² μ§λ§,
isActiveκ° trueμΈ λͺ©λ‘λ€λ§ μ‘°ννλλ‘ λ°κΎΈλκ² μ’μκΉμ ?
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.
λ€ Userμͺ½μμ μ¬μ©νλ κΈ°λ₯μ΄λΌκ³ μκ°νλ©΄ isActive κ°μ΄ trueμΈ κ²λ§ μ‘°νν΄μ€λκ² λ§λ€κ³ μκ°ν©λλ€.
μΆν κ΄λ¦¬μ νμ΄μ§μμλ λ°λ‘ APIλ₯Ό λ§λ€μ΄μ 쿼리μ€νΈλ§μΌλ‘ 컨νΈλ‘€ ν μ μλλ‘ λ§λλκ² μ’μ κ² κ°μμ
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 λ£μμ΅λλ€ κ°μ¬ν©λλ€ !
- SharePostResponse isActive νλ μΆκ°
- SharePostResponse isActive νλ μΆκ°
μ€μ trueκ°μ λν κ²μκΈλ§ μ‘°ν
- νμ±νλ κ²μκΈ λͺ©λ‘ νμ΄μ§ μ‘°ν - μμ νμ΄μ§ μμ²μ μμΈ λ°μ - λλ²μ§Έ νμ΄μ§ μ‘°ν
λ€μ΄λ° μ μ
Pull Request Template
π PR μ€λͺ
π§ͺ ν μ€νΈ
β 체ν¬λ¦¬μ€νΈ
π€ κ΄λ ¨ μ΄μ