-
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.
- Loading branch information
Showing
7 changed files
with
153 additions
and
149 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/java/com/seulseul/seulseul/config/CustomExceptionHandler.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
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
16 changes: 0 additions & 16 deletions
16
src/main/java/com/seulseul/seulseul/dto/Response/ResponseData.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/main/java/com/seulseul/seulseul/dto/response/ResponseData.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,16 @@ | ||
package com.seulseul.seulseul.dto.response; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class ResponseData { | ||
private int code; | ||
private Object data; | ||
|
||
public ResponseData(int code, Object data) { | ||
this.code = code; | ||
this.data = data; | ||
} | ||
} |
141 changes: 71 additions & 70 deletions
141
src/main/java/com/seulseul/seulseul/dto/stopTimeList/StopTimeDto.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 |
---|---|---|
@@ -1,79 +1,80 @@ | ||
package com.seulseul.seulseul.dto.stopTimeList; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
public class StopTimeDto { | ||
private Result result; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class Result { | ||
@JsonProperty("OrdList") | ||
private OrdList ordList; | ||
@JsonProperty("SatList") | ||
private SatList satList; | ||
|
||
@JsonProperty("SunList") | ||
private SunList sunList; | ||
|
||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class OrdList { | ||
@JsonProperty("up") | ||
private Up up; | ||
|
||
@JsonProperty("down") | ||
private Down down; | ||
|
||
} | ||
@Getter | ||
@NoArgsConstructor | ||
public class SatList { | ||
@JsonProperty("up") | ||
private Up up; | ||
|
||
@JsonProperty("down") | ||
private Down down; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class SunList { | ||
@JsonProperty("up") | ||
private Up up; | ||
|
||
@JsonProperty("down") | ||
private Down down; | ||
} | ||
@Getter | ||
@NoArgsConstructor | ||
public class Up { | ||
@JsonProperty("time") | ||
private List<Time> time; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class Down { | ||
@JsonProperty("time") | ||
private List<Time> time; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class Time { | ||
@JsonProperty("idx") | ||
private Integer idx; | ||
@JsonProperty("list") | ||
private String list; | ||
} | ||
|
||
|
||
private Result result; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class Result { | ||
@JsonProperty("OrdList") | ||
private OrdList ordList; | ||
@JsonProperty("SatList") | ||
private SatList satList; | ||
|
||
@JsonProperty("SunList") | ||
private SunList sunList; | ||
|
||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class OrdList { | ||
@JsonProperty("up") | ||
private Up up; | ||
|
||
@JsonProperty("down") | ||
private Down down; | ||
|
||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class SatList { | ||
@JsonProperty("up") | ||
private Up up; | ||
|
||
@JsonProperty("down") | ||
private Down down; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class SunList { | ||
@JsonProperty("up") | ||
private Up up; | ||
|
||
@JsonProperty("down") | ||
private Down down; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class Up { | ||
@JsonProperty("time") | ||
private List<Time> time; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class Down { | ||
@JsonProperty("time") | ||
private List<Time> time; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class Time { | ||
@JsonProperty("idx") | ||
private Integer idx; | ||
@JsonProperty("list") | ||
private String list; | ||
} | ||
} |
41 changes: 21 additions & 20 deletions
41
src/main/java/com/seulseul/seulseul/dto/transferInfo/TransferInfoJsonDto.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 |
---|---|---|
@@ -1,33 +1,34 @@ | ||
package com.seulseul.seulseul.dto.transferInfo; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Getter | ||
public class TransferInfoJsonDto { | ||
private Result result; | ||
private Result result; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public static class Result { | ||
private ExChangeInfoSet exChangeInfoSet; | ||
} | ||
@Getter | ||
@NoArgsConstructor | ||
public static class Result { | ||
private ExChangeInfoSet exChangeInfoSet; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public static class ExChangeInfoSet { | ||
private List<ExChangeInfo> exChangeInfo; | ||
} | ||
@Getter | ||
@NoArgsConstructor | ||
public static class ExChangeInfoSet { | ||
private List<ExChangeInfo> exChangeInfo; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public static class ExChangeInfo { | ||
private String exName; | ||
private int exWalkTime; | ||
private int exSID; | ||
} | ||
@Getter | ||
@NoArgsConstructor | ||
public static class ExChangeInfo { | ||
private String exName; | ||
private int exWalkTime; | ||
private int exSID; | ||
} | ||
} |
74 changes: 38 additions & 36 deletions
74
src/main/java/com/seulseul/seulseul/entity/alarm/Alarm.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 |
---|---|---|
@@ -1,46 +1,48 @@ | ||
package com.seulseul.seulseul.entity.alarm; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.AllArgsConstructor; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor | ||
public class Alarm { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "alarm_id") | ||
private Long id; | ||
|
||
private boolean alarmEnabled; | ||
|
||
private Long alarmTime; | ||
|
||
private int alarmTerm; | ||
|
||
public Alarm(Long alarmTime, int alarmTerm) { | ||
this.alarmEnabled = true; | ||
this.alarmTime = alarmTime; | ||
this.alarmTerm = alarmTerm; | ||
} | ||
|
||
public void updateAlarm(Long alarmTime, int alarmTerm) { | ||
this.alarmTime = alarmTime; | ||
this.alarmTerm = alarmTerm; | ||
} | ||
|
||
public void updateAlarmEnabled(boolean alarmEnabled) { | ||
if (alarmEnabled == true) { | ||
this.alarmEnabled = false; | ||
} | ||
else { | ||
this.alarmEnabled = true; | ||
} | ||
} | ||
|
||
public void setAlarmEnabled() { | ||
this.alarmEnabled = false; | ||
} | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "alarm_id") | ||
private Long id; | ||
|
||
private boolean alarmEnabled; | ||
|
||
private Long alarmTime; | ||
|
||
private int alarmTerm; | ||
|
||
public Alarm(Long alarmTime, int alarmTerm) { | ||
this.alarmEnabled = true; | ||
this.alarmTime = alarmTime; | ||
this.alarmTerm = alarmTerm; | ||
} | ||
|
||
public void updateAlarm(Long alarmTime, int alarmTerm) { | ||
this.alarmTime = alarmTime; | ||
this.alarmTerm = alarmTerm; | ||
} | ||
|
||
public void updateAlarmEnabled(boolean alarmEnabled) { | ||
if (alarmEnabled == true) { | ||
this.alarmEnabled = false; | ||
} else { | ||
this.alarmEnabled = true; | ||
} | ||
} | ||
|
||
public void setAlarmEnabled() { | ||
this.alarmEnabled = false; | ||
} | ||
} |