|
@@ -408,4 +408,111 @@ participant "评论表" as 评论数据库
|
|
|
|
|
|
用户在作品展示页面加载所有作品,系统从数据库获取数据并展示。
|
|
|
用户可以浏览作品详情,进行点赞和评论操作。
|
|
|
-系统在用户进行互动后,更新相应的数据,并评估哪些作品是热门作品。
|
|
|
+系统在用户进行互动后,更新相应的数据,并评估哪些作品是热门作品。
|
|
|
+
|
|
|
+
|
|
|
+```plantuml
|
|
|
+@startuml
|
|
|
+class University {
|
|
|
+ - String name
|
|
|
+ + void manageColleges()
|
|
|
+}
|
|
|
+
|
|
|
+class College {
|
|
|
+ - String collegeName
|
|
|
+ + void manageDepartments()
|
|
|
+ + void manageClasses()
|
|
|
+}
|
|
|
+
|
|
|
+class Department {
|
|
|
+ - String departmentName
|
|
|
+ + void arrangeTeachers()
|
|
|
+}
|
|
|
+
|
|
|
+class Teacher {
|
|
|
+ - String teacherName
|
|
|
+ - int teacherId
|
|
|
+ + void teachCourses()
|
|
|
+ + void assignTeachingTasks()
|
|
|
+}
|
|
|
+
|
|
|
+class Student {
|
|
|
+ - String studentName
|
|
|
+ - int studentId
|
|
|
+ + void selectCourses()
|
|
|
+ + void attendClasses()
|
|
|
+}
|
|
|
+
|
|
|
+class UndergraduateStudent extends Student {
|
|
|
+ - String major
|
|
|
+}
|
|
|
+
|
|
|
+class GraduateStudent extends Student {
|
|
|
+ - String researchDirection
|
|
|
+}
|
|
|
+
|
|
|
+class Course {
|
|
|
+ - String courseName
|
|
|
+ - int courseId
|
|
|
+ + void setCourseContent()
|
|
|
+}
|
|
|
+
|
|
|
+class TeachingTask {
|
|
|
+ - int taskId
|
|
|
+ + void setTaskDetails()
|
|
|
+}
|
|
|
+
|
|
|
+University "1" *-- "n" College
|
|
|
+College "1" *-- "n" Department
|
|
|
+College "1" *-- "n" Class
|
|
|
+Department "1" *-- "n" Teacher
|
|
|
+Student "1" <|-- "n" UndergraduateStudent
|
|
|
+Student "1" <|-- "n" GraduateStudent
|
|
|
+Teacher "1" *-- "n" TeachingTask
|
|
|
+Teacher "1" *-- "n" Course
|
|
|
+Student "n" *-- "m" Course
|
|
|
+@enduml
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+```plantuml
|
|
|
+@startuml
|
|
|
+title 大学教务管理系统选课顺序图
|
|
|
+
|
|
|
+actor Student as s
|
|
|
+participant Undergraduate as ug
|
|
|
+participant Graduate as gr
|
|
|
+participant Class as c
|
|
|
+participant College as col
|
|
|
+participant TeachingAndResearchOffice as tro
|
|
|
+participant Teacher as t
|
|
|
+participant Course as co
|
|
|
+participant TeachingTask as tt
|
|
|
+
|
|
|
+s -> ug: 是本科生\n请求选课
|
|
|
+s -> gr: 是研究生\n请求选课
|
|
|
+
|
|
|
+ug -> c: 查询可选课程
|
|
|
+gr -> c: 查询可选课程
|
|
|
+
|
|
|
+c -> col: 传递课程查询请求
|
|
|
+col -> tro: 请求获取授课教师及课程信息
|
|
|
+tro -> t: 查询授课教师\n获取课程信息
|
|
|
+t -> tt: 查看教学任务相关课程
|
|
|
+tt -> co: 获取课程详情
|
|
|
+
|
|
|
+co -> c: 返回课程详情
|
|
|
+c -> ug: 返回可选课程信息
|
|
|
+c -> gr: 返回可选课程信息
|
|
|
+
|
|
|
+ug -> co: 选择课程
|
|
|
+gr -> co: 选择课程
|
|
|
+
|
|
|
+co -> tt: 记录选课信息
|
|
|
+tt -> t: 通知教师选课情况
|
|
|
+t -> tro: 反馈选课情况至教研室
|
|
|
+tro -> col: 反馈至学院
|
|
|
+col -> c: 班级内更新选课状态
|
|
|
+c -> ug: 确认选课成功
|
|
|
+c -> gr: 确认选课成功
|
|
|
+@enduml
|