forked from codesquad-members-2023/second-hand
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 상품 등록 시 title에 대한 카테고리 추천 기능(랜덤으로 임시 구현)(#75)
- Loading branch information
1 parent
49882c0
commit 311a97f
Showing
5 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
be/src/main/java/com/secondhand/category/dto/PostTitleDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.secondhand.category.dto; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class PostTitleDto { | ||
|
||
private String title; | ||
} |
15 changes: 15 additions & 0 deletions
15
be/src/main/java/com/secondhand/category/dto/RecommendedCategoriesDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.secondhand.category.dto; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RecommendedCategoriesDto { | ||
|
||
private int id; | ||
private String name; | ||
|
||
public RecommendedCategoriesDto(int id, String name) { | ||
this.id = id; | ||
this.name = name; | ||
} | ||
} |