Skip to content

Commit

Permalink
FEAT : ProductType 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
JuseungL committed Aug 1, 2024
1 parent 9636064 commit 6bd7b3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class PurchaseRecordController {

// 구매 기록 저장
@PostMapping // URL 결정
@Operation(summary = "구매 기록 저장", description = "새로운 구매 기록을 저장합니다.")
@Operation(summary = "구매 기록 저장", description = "새로운 구매 기록을 저장합니다. (DRINK/SNACK)")
public ResponseEntity<ApiResponse<Object>> savePurchaseRecord(
@RequestBody PurchaseRecordCreateRequestDto purchaseRecordCreateRequestDto,
Principal principal
Expand All @@ -47,7 +47,7 @@ public ResponseEntity<ApiResponse<List<PurchaseRecordGetResponseDto>>> getAllPur
}

@GetMapping("/{memberId}")
@Operation(summary = "이달 구매 인증 횟수 조회", description = "이달에 구매 인증 횟수를 조회합니다.")
@Operation(summary = "이달 구매 인증 횟수 조회", description = "이달에 구매 인증 횟수를 조회합니다. (Type별로)")
public ResponseEntity<ApiResponse<List<PurchaseRecordCountResponseDto>>> getPurchaseCount(
@PathVariable(value = "memberId") Long memberId
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ public class PurchaseRecord extends BaseTimeEntity {
@JoinColumn(name = "member_id")
private Member member;

@Column(nullable = false)
private String productName; // 제품이름


@Column(nullable = false)
@Enumerated(EnumType.STRING)
private ProductType productType;

@Builder
Expand Down

0 comments on commit 6bd7b3f

Please sign in to comment.