-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[feat] 할인 정보 수정/삭제 API 구현
- Loading branch information
Showing
16 changed files
with
253 additions
and
55 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
50 changes: 50 additions & 0 deletions
50
src/main/java/com/bbteam/budgetbuddies/domain/discountinfo/dto/DiscountRequest.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,50 @@ | ||
package com.bbteam.budgetbuddies.domain.discountinfo.dto; | ||
|
||
import lombok.*; | ||
|
||
import java.time.LocalDate; | ||
|
||
public class DiscountRequest { | ||
|
||
@Getter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class RegisterDto { | ||
|
||
private String title; | ||
|
||
private LocalDate startDate; | ||
|
||
private LocalDate endDate; | ||
|
||
private Integer discountRate; | ||
|
||
private String siteUrl; | ||
|
||
private String thumbnailUrl; | ||
} | ||
|
||
@Getter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class UpdateDto { | ||
|
||
private Long id; | ||
|
||
private String title; | ||
|
||
private LocalDate startDate; | ||
|
||
private LocalDate endDate; | ||
|
||
private Integer discountRate; | ||
|
||
private String siteUrl; | ||
|
||
private String thumbnailUrl; | ||
} | ||
|
||
|
||
} |
23 changes: 0 additions & 23 deletions
23
src/main/java/com/bbteam/budgetbuddies/domain/discountinfo/dto/DiscountRequestDto.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -26,4 +26,6 @@ public class DiscountResponseDto { | |
|
||
private String siteUrl; | ||
|
||
private String thumbnailUrl; | ||
|
||
} |
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
Oops, something went wrong.