Skip to content

Commit 83ffdca

Browse files
committed
refect: 디렉토리 구조 및 plan의 기초 구성
# Conflicts: # src/main/java/com/back/domain/studyroom/entity/Room.java
1 parent 72dbc00 commit 83ffdca

File tree

13 files changed

+49
-14
lines changed

13 files changed

+49
-14
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.back.domain.study.plan.controller;
2+
3+
import com.back.domain.study.plan.service.StudyPlanService;
4+
import org.springframework.web.bind.annotation.RequestMapping;
5+
import org.springframework.web.bind.annotation.RestController;
6+
7+
@RestController
8+
@RequestMapping("/api/plans")
9+
public class StudyPlanController {
10+
private final StudyPlanService studyPlanService;
11+
}

src/main/java/com/back/domain/study/entity/Color.java renamed to src/main/java/com/back/domain/study/plan/entity/Color.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.back.domain.study.entity;
1+
package com.back.domain.study.plan.entity;
22

33
public enum Color {
44
RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE, PINK

src/main/java/com/back/domain/study/entity/DayOfWeek.java renamed to src/main/java/com/back/domain/study/plan/entity/DayOfWeek.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.back.domain.study.entity;
1+
package com.back.domain.study.plan.entity;
22

33
public enum DayOfWeek {
44
MON, TUE, WED, THU, FRI, SAT, SUN

src/main/java/com/back/domain/study/entity/Frequency.java renamed to src/main/java/com/back/domain/study/plan/entity/Frequency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.back.domain.study.entity;
1+
package com.back.domain.study.plan.entity;
22

33
public enum Frequency {
44
DAILY, WEEKLY, MONTHLY

src/main/java/com/back/domain/study/entity/RepeatRule.java renamed to src/main/java/com/back/domain/study/plan/entity/RepeatRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.back.domain.study.entity;
1+
package com.back.domain.study.plan.entity;
22

33
import com.back.global.entity.BaseEntity;
44
import jakarta.persistence.*;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
package com.back.domain.study.entity;
1+
package com.back.domain.study.plan.entity;
22

3+
//삭제 예정
34
public enum RepeatType {
45
NONE, DAILY, WEEKLY, MONTHLY
56
}

src/main/java/com/back/domain/study/entity/StudyPlan.java renamed to src/main/java/com/back/domain/study/plan/entity/StudyPlan.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.back.domain.study.entity;
1+
package com.back.domain.study.plan.entity;
22

33
import com.back.domain.user.entity.User;
44
import com.back.global.entity.BaseEntity;
@@ -28,9 +28,6 @@ public class StudyPlan extends BaseEntity {
2828
@Enumerated(EnumType.STRING)
2929
private Color color;
3030

31-
@Enumerated(EnumType.STRING)
32-
private RepeatType repeatType;
33-
3431
@OneToOne(mappedBy = "studyPlan")
3532
private RepeatRule repeatRule;
3633
}

src/main/java/com/back/domain/study/entity/StudyStatus.java renamed to src/main/java/com/back/domain/study/plan/entity/StudyStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.back.domain.study.entity;
1+
package com.back.domain.study.plan.entity;
22

33
public enum StudyStatus {
44
TODO, DONE
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.back.domain.study.plan.repository;
2+
3+
import com.back.domain.study.plan.entity.StudyPlan;
4+
import org.springframework.data.jpa.repository.JpaRepository;
5+
6+
public interface StudyPlanRepository extends JpaRepository<StudyPlan, Integer> {
7+
8+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.back.domain.study.plan.service;
2+
3+
import com.back.domain.study.plan.repository.StudyPlanRepository;
4+
import lombok.RequiredArgsConstructor;
5+
import org.springframework.stereotype.Service;
6+
import org.springframework.transaction.annotation.Transactional;
7+
8+
@Service
9+
@RequiredArgsConstructor
10+
@Transactional
11+
public class StudyPlanService{
12+
private final StudyPlanRepository studyPlanRepository;
13+
14+
15+
16+
}

0 commit comments

Comments
 (0)