-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/Tave-13th-Project-Team-4-Fiu…
…rinee/Server into dev
- Loading branch information
Showing
5 changed files
with
38 additions
and
25 deletions.
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
9 changes: 8 additions & 1 deletion
9
src/main/java/com/example/fiurinee/domain/inputMessage/dto/ModelMentResponseDto.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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
package com.example.fiurinee.domain.inputMessage.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class ModelMentResponseDto { | ||
|
||
@JsonProperty("꽃") | ||
private String name; | ||
|
||
@JsonProperty("꽃말") | ||
private String flowerLanguage; | ||
|
||
@JsonProperty("유사도") | ||
private Double similarity; | ||
|
||
public ModelMentResponseDto(){} | ||
|
||
public ModelMentResponseDto(String name, String flowerLanguage) { | ||
this.name = name; | ||
this.flowerLanguage = flowerLanguage; | ||
this.similarity = 0.1; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/example/fiurinee/domain/inputMessage/dto/RecommendationResponse.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,19 @@ | ||
package com.example.fiurinee.domain.inputMessage.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
public class RecommendationResponse { | ||
@JsonProperty("recommendations") | ||
private List<ModelMentResponseDto> recommendations; | ||
|
||
public RecommendationResponse() {} | ||
|
||
public RecommendationResponse(List<ModelMentResponseDto> recommendations) { | ||
this.recommendations = recommendations; | ||
} | ||
} | ||
|
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