Skip to content

Commit b1d2bd7

Browse files
authored
Merge pull request #4 from enjoy-hack/jiwoo
Jiwoo
2 parents 1d88204 + 6e108eb commit b1d2bd7

9 files changed

Lines changed: 200 additions & 2 deletions

File tree

src/main/java/com/example/smartair/controller/homecontroller/HomeController.java renamed to src/main/java/com/example/smartair/controller/HomeController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.smartair.controller.homecontroller;
1+
package com.example.smartair.controller;
22

33
import ch.qos.logback.core.model.Model;
44
import com.example.smartair.dto.TrackProgressDto;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.example.smartair.controller;
2+
3+
public class StudentDataController {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.example.smartair.controller;
2+
3+
public class TrackController {
4+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.example.smartair.dto;
2+
3+
import lombok.Getter;
4+
import lombok.Setter;
5+
6+
/**
7+
* 과목 정보 DTO
8+
* (title, year, semester, code, status)
9+
*/
10+
@Getter
11+
@Setter
12+
public class CourseStatusDto {
13+
14+
private String title; // 과목명 (기존 courseName)
15+
private String year; // 이수 학년 (예: "전학년")
16+
private String semester; // 이수 학기 (예: "전학기")
17+
private String code; // 과목 코드 (기존 courseCode)
18+
private String status; // 이수 상태 ("COMPLETED", "SCHEDULED", "NONE")
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.example.smartair.dto;
2+
3+
import lombok.Getter;
4+
import lombok.Setter;
5+
import java.util.List;
6+
7+
/**
8+
* 상세 UI 화면의 트랙 탭 하나의 전체 정보를 담는 DTO
9+
* 새로 정의된 CourseStatusDto를 사용
10+
*/
11+
@Getter
12+
@Setter
13+
public class TrackDetailDto {
14+
15+
private String trackName; // 트랙 이름
16+
private int completedCount; // 이수한 과목 수
17+
private int requiredCount = 6; // 이수 필요 과목 수
18+
19+
// 리스트의 타입이 새로운 CourseStatusDto로 변경
20+
private List<CourseStatusDto> courses;
21+
}

src/main/java/com/example/smartair/entity/TrackCourse.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ public class TrackCourse {
1111
private Long id;
1212
private String courseName; // 현재 과목명
1313
private String courseAlias; // 구(과거) 과목명
14+
private String courseCode; // 과목 코드 (DTO의 'code'에 해당)
15+
private String academicYear; // 이수 추천 학년 (DTO의 'year'에 해당)
16+
private String academicSemester; // 이수 추천 학기 (DTO의 'semester'에 해당)
1417

1518
@ManyToOne
1619
@JoinColumn(name = "track_id")
1720
private Track track;
18-
// Getters and Setters
1921
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.example.smartair.repository;
2+
3+
public class ScheduledCourseRepository {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.example.smartair.repository;
2+
3+
public class UserRepository {
4+
}

src/main/resources/data.sql

Lines changed: 140 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)