Skip to content

Commit

Permalink
[feat] 내 루틴 Datetime format 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ryulkim committed Nov 17, 2023
1 parent 6ed9f2c commit 5094b37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package inha.how.Domain.dto.routine;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

public interface RoutineMeDetailMapping {
//운동 id
//운동 제목
//운동 횟수
//내 루틴 생성 일자

Long getRoutineId();
String getRoutineSubject();
Integer getCount();
@JsonFormat(pattern = "yyyy-MM-dd")
LocalDateTime getCreateDate();

}
1 change: 1 addition & 0 deletions src/main/java/inha/how/Domain/entity/BaseTimeEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import lombok.Getter;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

Expand Down

0 comments on commit 5094b37

Please sign in to comment.