Skip to content

Commit

Permalink
#29 [CHORE] : DTO record로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
bbabbi committed Nov 9, 2024
1 parent 8541f63 commit 3ccf59c
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions server/src/main/java/org/cecd/server/dto/EnergyUsageResponse.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
package org.cecd.server.dto;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@AllArgsConstructor
public class EnergyUsageResponse {
private String sensorNumber;
private LocalDateTime dateTime;
private double result;
private double percentage;
}
public record EnergyUsageResponse(
String sensorNumber,
LocalDateTime dateTime,
double result,
double percentage
) {}

0 comments on commit 3ccf59c

Please sign in to comment.