-
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
Feature/84 artwork more info #98
Conversation
src/test/resources/application.yml
Outdated
url: ${application.spring.datasource.url} | ||
username: ${application.spring.datasource.username} | ||
password: ${application.spring.datasource.password} | ||
driver-class-name: com.mysql.cj.jdbc.Driver |
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.
datasourceλ₯Ό μλ΅νλ©΄ h2 inmemory λͺ¨λλ‘ μλμΌλ‘ λμνλ κ²μΌλ‘ μκ³ μμ΅λλ€. νΉμ μ λ κ² μΆκ°νλ©΄ mysqlλ‘ λμνκ³ , λ‘컬 mysql dbμ λ°μ΄ν° μΆ©λμ΄ λ°μν μ μμ§ μλμ©??
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.
μμ λ΅. μ΄ λΆλΆμ μ κ° μμ§λ₯Ό λͺ»ν΄μ μμ ν΄μ μ¬λ¦¬κ² μ΅λλ€!
@@ -32,7 +32,7 @@ public class ArtWork extends BaseEntity { | |||
|
|||
private String material; | |||
|
|||
private String size; | |||
private Integer productionYear; |
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.
λ³κ²½λ νλλ erdμ λ°μν΄μ£ΌμΈμ!!
private String status; | ||
private String statusDescription; | ||
private Integer width; | ||
private Integer length; | ||
private Integer height; |
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.
μμ§λ λμ νλλ€μ κ°μ²΄λ‘ λ¬Άκ³ , @Embeddedλ₯Ό νμ©νλ©΄ μ’μ κ² κ°μμ!
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.
λ΅ ν΅ν©λ κ°μ²΄λ‘ κ΄λ¦¬νλκ² λ§λκ² κ°λ€μ©
.mainImage(findArtWork.getMainImage()) | ||
.artistImage(findArtist.getImage()) | ||
.images(artWorkImages.stream().map(m -> m.getImage()).collect(Collectors.toList())) | ||
.keywords(artWorkKeywords.stream().map(m->KeywordMap.getKeywordName(m.getKeywordId())).collect(Collectors.toList())) |
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.
μΌμ΄ κΈ°λ€μ. νΉμ μ κ° μμ±ν ChatRoomDetailResponse
λ΄λΆ ν΄λμ€μ from()μ²λΌ μΆμν νλ λ°©λ²μ μ΄λ»κ² μκ°νμλμ! μ견μ μ£Όκ³ λ°κ³ μΆμ΅λλΉ
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.
μ λ§μνμ λΆλΆ μ°Έκ³ ν΄μ μμ ν΄λ³΄κ² μ΅λλ€!
@@ -27,4 +30,13 @@ public ResponseEntity<Void> saveArtWork(@AuthenticationPrincipal CustomUserDetai | |||
|
|||
return new ResponseEntity(HttpStatus.OK); | |||
} | |||
|
|||
// μν μμΈ μ‘°ν | |||
@GetMapping("/art-work/{artWorkId}") |
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.
/art-worksκ° μλ /art-workλ‘ νμ μλκ° μμΌμ€κΉμ©
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.
κΈ°μ‘΄ μνλ±λ‘μ΄ /art-work λ€ λ³΄λ μμΈ λν μ΄λ κ² μμ± ν건λ°,
νμ κ΄λ ¨ end pointλ /membersλ€ λ³΄λκΉ /art-worksλ‘ ν΅μΌνλκ² λ§λκ² κ°μ΅λλ€
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.
μμ μ¬ν μ λΆ νμΈνμ΅λλ€. κ³ μνμ ¨μ΄μ!
@@ -9,6 +9,8 @@ | |||
@Builder | |||
public class PreferredArtWorkResponse { | |||
|
|||
private Long id; |
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.
λͺ©λ‘ μ‘°νμμ idλ₯Ό μΆκ°νμ μ΄μ κ° κΆκΈν©λλΉ μ κ²λ λ£μ΄μΌ νλ ν΄μμ©,,
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.
νμΈνμ΅λλ€! μκ³ νμ ¨μ΅λλΉ
π κ΄λ ¨ μ΄μ
close #84
β¨ μμ λ΄μ©
π κΈ°ν