Skip to content

Commit

Permalink
✨ Feat[#24]: 포인트 이전 Dto
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuwon2407 committed Nov 23, 2024
1 parent c8b963a commit b137b0c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.groom.swipo.domain.point.dto.Request;

public record PointTransferRequest(
String fromCardId,
String toCardId,
Integer point
){
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.groom.swipo.domain.point.dto.Response;

import java.util.List;

import com.groom.swipo.domain.point.dto.CardInfo;

import lombok.Builder;

@Builder
public record PointTransferInfoResponse(
Integer cardNum,
List<CardInfo> cards
) {
public static PointTransferInfoResponse of(Integer cardNum, List<CardInfo> cards){
return PointTransferInfoResponse.builder()
.cardNum(cardNum)
.cards(cards)
.build();
}
}

0 comments on commit b137b0c

Please sign in to comment.