Skip to content

Commit

Permalink
Merge pull request #126 from Dear-project/feat/#120
Browse files Browse the repository at this point in the history
Feat/#120
  • Loading branch information
GayeongKimm authored Oct 22, 2024
2 parents 714aab3 + 8cc44c5 commit 2072224
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 92 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'

//neis
implementation 'org.springframework:spring-context:6.0.6'
implementation 'org.springframework:spring-web:6.0.6'
implementation 'org.springframework:spring-tx:6.0.6'

implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'

implementation 'com.googlecode.json-simple:json-simple:1.1.1'
// implementation 'org.springframework:spring-context:6.0.6'
// implementation 'org.springframework:spring-web:6.0.6'
// implementation 'org.springframework:spring-tx:6.0.6'
//
// implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.2'
// implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
// implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
//
// implementation 'com.googlecode.json-simple:json-simple:1.1.1'

}

Expand Down
26 changes: 13 additions & 13 deletions src/main/java/com/dear/domain/food/enums/Food.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.dear.domain.food.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;
import java.util.List;

@Getter
@AllArgsConstructor
public class Food implements Serializable {

private List<FoodDetail> details;
private Float calorie;
}
//import lombok.AllArgsConstructor;
//import lombok.Getter;
//
//import java.io.Serializable;
//import java.util.List;

//@Getter
//@AllArgsConstructor
//public class Food implements Serializable {
//
// private List<FoodDetail> details;
// private Float calorie;
//}
26 changes: 13 additions & 13 deletions src/main/java/com/dear/domain/food/enums/FoodDetail.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.dear.domain.food.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;
import java.util.List;

@Getter
@AllArgsConstructor
public class FoodDetail implements Serializable {

private String name;
private List<Integer> allergies;
}
//import lombok.AllArgsConstructor;
//import lombok.Getter;
//
//import java.io.Serializable;
//import java.util.List;
//
//@Getter
//@AllArgsConstructor
//public class FoodDetail implements Serializable {
//
// private String name;
// private List<Integer> allergies;
//}
86 changes: 43 additions & 43 deletions src/main/java/com/dear/domain/food/enums/Meal.java
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
package com.dear.domain.food.enums;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDate;

@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Meal implements Serializable {

private boolean exists;

@JsonDeserialize(using = LocalDateDeserializer.class)
@JsonSerialize(using = LocalDateSerializer.class)
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate date;

private Food breakfast;

private Food lunch;

private Food dinner;

public void setBreakfast(Food breakfast) {
this.breakfast = breakfast;
}
public void setLunch(Food lunch) {
this.lunch = lunch;
}
public void setDinner(Food dinner) {
this.dinner = dinner;
}

}
//package com.dear.domain.food.enums;
//
//
//import com.fasterxml.jackson.annotation.JsonFormat;
//import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
//import com.fasterxml.jackson.databind.annotation.JsonSerialize;
//import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
//import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
//import lombok.*;
//
//import java.io.Serializable;
//import java.time.LocalDate;
//
//@Getter
//@Builder
//@AllArgsConstructor
//@NoArgsConstructor(access = AccessLevel.PROTECTED)
//public class Meal implements Serializable {
//
// private boolean exists;
//
// @JsonDeserialize(using = LocalDateDeserializer.class)
// @JsonSerialize(using = LocalDateSerializer.class)
// @JsonFormat(pattern = "yyyy-MM-dd")
// private LocalDate date;
//
// private Food breakfast;
//
// private Food lunch;
//
// private Food dinner;
//
// public void setBreakfast(Food breakfast) {
// this.breakfast = breakfast;
// }
// public void setLunch(Food lunch) {
// this.lunch = lunch;
// }
// public void setDinner(Food dinner) {
// this.dinner = dinner;
// }
//
//}
20 changes: 10 additions & 10 deletions src/main/java/com/dear/global/properties/NeisProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Getter
@Setter
@Configuration
@ConfigurationProperties("neis")
public class NeisProperties {

private String url;
private String key;

}
//@Getter
//@Setter
//@Configuration
//@ConfigurationProperties("neis")
//public class NeisProperties {
//
// private String url;
// private String key;
//
//}
8 changes: 4 additions & 4 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
spring:
datasource:
url: ENC(s/PjxYpqkq7UpUtC4Rem8M6TzO9oijVI2X18jxNP6u6e48OfB1uYXb2LLDXzT3Ka)
driver-class-name: com.mysql.cj.jdbc.Driver
username: ENC(B2z7wQM8Cy5yoEYmCLkjOQ==)
password: ENC(/obOB0fFdJNlUWEjvmq910nHremT7t+r)
url: ENC(s/PjxYpqkq7UpUtC4Rem8M6TzO9oijVI2X18jxNP6u6e48OfB1uYXb2LLDXzT3Ka)
driver-class-name: com.mysql.cj.jdbc.Driver
username: ENC(B2z7wQM8Cy5yoEYmCLkjOQ==)
password: ENC(/obOB0fFdJNlUWEjvmq910nHremT7t+r)

batch:
jdbc:
Expand Down

0 comments on commit 2072224

Please sign in to comment.