瀏覽代碼

feat: 返回课程知识点信息

ChenSiTong 6 年之前
父節點
當前提交
15c62fd5c9

+ 0 - 19
src/main/java/nju/seec/helper/dto/course/CourseFileDTO.java

@@ -1,19 +0,0 @@
-package nju.seec.helper.dto.course;
-
-import lombok.Data;
-import org.springframework.web.multipart.MultipartFile;
-
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-
-/**
- * @author cst
- */
-@Data
-public class CourseFileDTO implements Serializable {
-    private static final long serialVersionUID = -3754505745869667461L;
-    @NotNull(message = "缺少课程ID")
-    private Long courseId;
-    @NotNull(message = "缺少文件")
-    private MultipartFile file;
-}

+ 5 - 0
src/main/java/nju/seec/helper/vo/CourseVO.java

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