-
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.
[Feat] 멤버, 아이템 등록시 responseDTO 변경(#14)
- Loading branch information
Showing
6 changed files
with
43 additions
and
6 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
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
15 changes: 15 additions & 0 deletions
15
carrotMarket/src/main/java/org/sopt/carrotMarket/service/dto/RegisterItemResponseDTO.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 org.sopt.carrotMarket.service.dto; | ||
|
||
import lombok.Builder; | ||
import org.sopt.carrotMarket.domain.Item; | ||
|
||
@Builder | ||
public record RegisterItemResponseDTO( | ||
Long itemId | ||
) { | ||
public static RegisterItemResponseDTO of(Long itemId) { | ||
return RegisterItemResponseDTO.builder() | ||
.itemId(itemId) | ||
.build(); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
carrotMarket/src/main/java/org/sopt/carrotMarket/service/dto/RegisterMemberResponseDTO.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 org.sopt.carrotMarket.service.dto; | ||
|
||
import lombok.Builder; | ||
import org.springframework.http.ResponseEntity; | ||
|
||
@Builder | ||
public record RegisterMemberResponseDTO( | ||
Long memberId | ||
) { | ||
public static RegisterMemberResponseDTO of(Long memberId) { | ||
return RegisterMemberResponseDTO.builder() | ||
.memberId(memberId) | ||
.build(); | ||
} | ||
} |