Skip to content

Commit

Permalink
feat: Fix to record
Browse files Browse the repository at this point in the history
  • Loading branch information
2zerozu committed Jul 11, 2023
1 parent bb0a243 commit a9eaeeb
Showing 1 changed file with 6 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,41 +1,13 @@
package com.universe.uni.dto.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class UpdateWishCouponResponseDto {
private Long id;
private String image;
private String content;
@JsonProperty("isVisible")
private boolean visible;
@JsonProperty("isUsed")
private boolean used;
private String usedAt;
private String gameType;

@Builder
public UpdateWishCouponResponseDto(
Long id,
String image,
String content,
boolean visible,
boolean used,
String usedAt,
String gameType
) {
this.id = id;
this.image = image;
this.content = content;
this.visible = visible;
this.used = used;
this.usedAt = usedAt;
this.gameType = gameType;
}
@JsonPropertyOrder({"id", "image", "content", "isVisible", "isUsed", "usedAt", "gameType"})
@Builder
public record UpdateWishCouponResponseDto(Long id, String image, String content,
@JsonProperty("isVisible") boolean visible,
@JsonProperty("isUsed") boolean used, String usedAt, String gameType) {
}

0 comments on commit a9eaeeb

Please sign in to comment.