|
|
@@ -5,6 +5,7 @@ import lombok.NonNull;
|
|
|
import nju.seec.helper.entity.Course;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author cst
|
|
|
@@ -19,6 +20,8 @@ public class CourseVO {
|
|
|
private Long teacherId;
|
|
|
private String teacherName;
|
|
|
|
|
|
+ private List<String> knowledgeId;
|
|
|
+
|
|
|
public CourseVO(@NonNull Course course) {
|
|
|
this.id = course.getId();
|
|
|
this.name = course.getName();
|
|
|
@@ -27,5 +30,7 @@ public class CourseVO {
|
|
|
|
|
|
this.teacherId = course.getTeacher().getId();
|
|
|
this.teacherName = course.getTeacher().getName();
|
|
|
+
|
|
|
+ this.knowledgeId = course.getKnowledgeId();
|
|
|
}
|
|
|
}
|