-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: 백신 도메인 리펙토링 #230
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
Changes from all commits
2a8be2c
fa2ce91
7b7500f
1639886
83a61a5
b532571
b5ec7cd
059dc77
5e99212
a08b320
3074e83
d3341a1
570ff58
6755d20
9d1b15c
efc9328
522f719
7cd744e
525f7d6
5c8499c
ad1f8ec
10a592a
70dbed7
512e31e
2e9f2e3
6107a6a
5ecc46e
392a4ea
6a7272e
c8b94a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. build() 빼도 될 것 같습니다
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. v1은 수정하지 않았습니다. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ public class VaccinationController implements VaccinationApi { | |
| public ResponseEntity<Void> createVaccinationInfoForPet(@LoginUser LoginInfo loginInfo, | ||
| @PathVariable Long petId, | ||
| @RequestBody CreateVaccinationRequest request) { | ||
| vaccinationService.createVaccinationInfo(loginInfo.memberId(), petId, request); | ||
| vaccinationService.createVaccinationInfo(petId, request); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 왜 제대로된 LoginInfo인지 확인은 안해주나요,,
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 반영했어요 |
||
|
|
||
| return ResponseEntity.status(HttpStatus.CREATED).build(); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,12 @@ | ||
| package com.kau.capstone.v1.vaccination.dto; | ||
|
|
||
| import com.kau.capstone.entity.pet.Pet; | ||
| import lombok.Builder; | ||
|
|
||
| @Builder | ||
| public record PetVaccinationResponse( | ||
| String name | ||
| ) { | ||
|
|
||
| public static PetVaccinationResponse toResponse(Pet pet) { | ||
| return PetVaccinationResponse.builder() | ||
| .name(pet.getName()) | ||
| .build(); | ||
| return new PetVaccinationResponse(pet.getName()); | ||
| } | ||
| } |
This file was deleted.
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.
@NotNull을 사용하는 이유가 따로 있나요?
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.
interface 구현에 따라서, validation 적용