-
Notifications
You must be signed in to change notification settings - Fork 1
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
[FEAT] B-03 #37 #60
[FEAT] B-03 #37 #60
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.
์๊ณ ํ์ จ์ต๋๋ค~
public Long getCategoryId() { | ||
return categoryId; | ||
// DTO -> Entity ๋ณํ | ||
public Post toEntity(Category category, JobPosting jobPosting){ |
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.
์ํฐํฐ๋ก ๋ณํํ๋ ๋ก์ง์ ์ํฐํฐ ๋ด๋ถ์ ์๋๊ฒ ์ข์ ๊ฑฐ ๊ฐ์์
backend/src/main/java/com/backend/domain/post/dto/PostCreateRequestDto.java
Show resolved
Hide resolved
@@ -32,7 +33,7 @@ public class Post extends BaseEntity { | |||
// board_id: ๊ฒ์๊ธ์ ๊ณ ์ ์๋ณ์(PK, Auto Increment) | |||
@Id | |||
@GeneratedValue(strategy = GenerationType.IDENTITY) | |||
private Long id; | |||
private Long boardId; |
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.
ํ ์ด๋ธ ๋ช ์ด ๋ฐ๊ผ์ผ๋ ํ๋ ๋ช ๋ postId๊ฐ ๋ง์ ๊ฑฐ ๊ฐ์ต๋๋น
// ๊ฒ์๊ธ ์์ฑ | ||
@Transactional | ||
public PostResponseDto createPost(PostCreateRequestDto requestDto, SiteUser user) { | ||
// 1. ๋ก๊ทธ์ธ ์ฌ๋ถ ํ์ธ(๋ก๊ทธ์ธ ํ์ง ์์ ๊ฒฝ์ฐ์ ๊ธ ์์ฑ x, ์์ธ ๋ฐ์) |
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.
์ํ๋ฆฌํฐ ๋ก์ง์์ ๋ก๊ทธ์ธ์ด ์๋๋ฉด ์์ ๋์ด์ค์ง ์๊ธฐ ๋๋ฌธ์ ์ด ๋ถ๋ถ์ ์ ๊ฑฐํด๋ ๊ด์ฐฎ์ ๊ฑฐ ๊ฐ์ต๋๋น
backend/src/test/java/com/backend/domain/post/PostRepositoryTest.java
Outdated
Show resolved
Hide resolved
์ถฉ๋๋ง ํด๊ฒฐํด์ฃผ์๋ฉด ๋ ๊ฒ ๊ฐ์ต๋๋ค. |
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.
๊ณ ์ ๋ง์ผ์ จ์ต๋๋ค!
๐Part
BE
FE
Infra
โ๏ธPR Type
์๋ก์ด ๊ธฐ๋ฅ ์ถ๊ฐ
๋ฒ๊ทธ ์์
์ฃผ์ ์ฝ๋ ๋ฆฌํํ ๋ง (์ฑ๋ฅ ์ต์ ํ ๋ฑ)
๊ฐ๋จ ์ฝ๋ ๋ฆฌํํ ๋ง (์ฃผ์, ์ฝ๋ ์ปจ๋ฒค์ , ์คํ ์์ ๋ฑ)
๊ธฐํ (๊ธฐํ ์ฌํญ ๊ธฐ์ )
โ๏ธPR Checklist
์ปค๋ฐ ๋ฉ์ธ์ง๋ฅผ ์ปจ๋ฒค์ ์ ๋ง๊ฒ ์ ์ ์ฉ ํ์๋์?
ํ ์คํธ ์ฝ๋ ์์ฑ / ๋จ์ ํ ์คํธ or ํตํฉ ํ ์คํธ ์งํ ํ์ จ๋์?
๐ ์์ ๋ด์ฉ
๊ฒ์๊ธ ์์ฑ
๋ก๊ทธ์ธ ํ ์ ์ ๋ง ๊ฒ์๊ธ ์์ฑ ๊ฐ๋ฅ
ํ์ฌ ์์นํ ์นดํ ๊ณ ๋ฆฌ์ ๊ธ ์ถ๊ฐ
๐์ด๋ฏธ์ง ์ฒจ๋ถ