Skip to content

Commit

Permalink
fix : search return 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Sep 14, 2023
1 parent e27c1a8 commit 383196c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gip/sever/controller/SearchController.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/search")
@RequestMapping(value = "/api/search")
public class SearchController {


Expand Down
2 changes: 2 additions & 0 deletions src/main/java/gip/sever/dto/response/SearchResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
@NoArgsConstructor
@AllArgsConstructor
public class SearchResponse {
private Long id;
private String title;
private String imageURL;
private String content;

public SearchResponse(Product product) {
this.id = product.getId();
this.title = product.getProductName();
this.imageURL = product.getPhotoUrl();
this.content = product.getProductName();
Expand Down

0 comments on commit 383196c

Please sign in to comment.