[ADD] 目標のためのModelを作成しました。
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
package com.example.demo.app.domain.model;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class GoalModel {
|
||||||
|
|
||||||
|
private Long goalId;
|
||||||
|
|
||||||
|
private String goalTitle;
|
||||||
|
|
||||||
|
private String goalSubtitle;
|
||||||
|
|
||||||
|
private Integer targetAmount;
|
||||||
|
|
||||||
|
private LocalDate deadline;
|
||||||
|
|
||||||
|
private Integer goalComplete;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -7,5 +7,5 @@ import com.example.demo.app.infra.entity.GoalEntity;
|
|||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface GoalRepository extends JpaRepository<GoalEntity, Long> {
|
public interface GoalRepository extends JpaRepository<GoalEntity, Long> {
|
||||||
//aaa
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user