|
@@ -179,6 +179,11 @@ class _User {
|
|
|
+ age: Number //年龄
|
|
|
+ email: String //用户邮箱
|
|
|
+ avatar: String //用户头像
|
|
|
+ + teacherId: String//教师工号
|
|
|
+ + studentId: String//学生学号
|
|
|
+ + identity: String//认证类别
|
|
|
+ + school: String//学校名称
|
|
|
+ + department: String//学院名称
|
|
|
}
|
|
|
|
|
|
class ChatPartner {
|
|
@@ -199,66 +204,41 @@ class ChatCompanion {
|
|
|
class ChatRecord {
|
|
|
+ objectId: String //聊天记录唯一标识符
|
|
|
+ title:String //聊天标题
|
|
|
- + content:Array //聊天内容
|
|
|
+ + content:Array //聊天内容
|
|
|
+ user: Pointer<User> //关联的用户对象
|
|
|
+ chatpartner: Pointer<ChatPartner> //关联的聊天机器人对象
|
|
|
}
|
|
|
-
|
|
|
-class ChatReport {
|
|
|
- + objectId: String //报告唯一标识符
|
|
|
- - report: String //分析结果
|
|
|
-}
|
|
|
class ChatEvaluate{
|
|
|
+ objectId:String//评论唯一标识符
|
|
|
- + avater:String//用户头像
|
|
|
+ + avatar:String//用户头像
|
|
|
+ content:String//评论内容
|
|
|
+ rating:Number//评论星星数
|
|
|
+ user: Pointer<User> //关联的用户对象
|
|
|
}
|
|
|
-
|
|
|
-class PsychologicalCommunity {
|
|
|
- + communityID: String // 社区唯一标识符
|
|
|
- + topic: String // 社区主题
|
|
|
-}
|
|
|
-
|
|
|
-class PsychologicalActivity {
|
|
|
- + activityID: String // 活动唯一标识符
|
|
|
- + title: String // 活动标题
|
|
|
- + description: String // 活动描述
|
|
|
- + date: Date // 活动日期
|
|
|
- + location: String // 活动地点
|
|
|
-}
|
|
|
-
|
|
|
-class PsychologicalSurvey {
|
|
|
- + surveyID: String // 调查唯一标识符
|
|
|
- + content: String // 调查内容
|
|
|
- + publisher: SchoolAdmin // 发布者
|
|
|
- + responses: List // 调查响应列表
|
|
|
+class Survey {
|
|
|
+ + objectId: String//问卷唯一标识符
|
|
|
+ + link: String//问卷链接
|
|
|
+ + title: String//问卷标题
|
|
|
+ + audience: String//问卷对象
|
|
|
+ + publisher:String//发布者,
|
|
|
+ + publishtime: String//发布时间
|
|
|
+ + category: String//问卷类别
|
|
|
}
|
|
|
-
|
|
|
-class SchoolAdmin {
|
|
|
- + adminID: String // 管理员唯一标识符
|
|
|
- + name: String // 管理员姓名
|
|
|
- + email: String // 管理员邮箱
|
|
|
-}
|
|
|
-
|
|
|
-class Bottle {
|
|
|
- + bottleID: String // 瓶子唯一标识符
|
|
|
- + content: String // 瓶子内容
|
|
|
- + author: User // 作者
|
|
|
- + timestamp: Date // 时间戳
|
|
|
+class DriftBottle {
|
|
|
+ + bottleID: String//漂流瓶唯一标识
|
|
|
+ + content: String//内容
|
|
|
+ + username: String//用户名
|
|
|
+ + throwtime: String//投放时间
|
|
|
+ + catcher: String//拾取者
|
|
|
+ + catchtime: String//拾取时间
|
|
|
+ + status: String//状态
|
|
|
}
|
|
|
|
|
|
-_User "1" -- "0..*" PsychologicalCommunity
|
|
|
-PsychologicalActivity "1" -- "0..*" _User
|
|
|
-SchoolAdmin "1" -- "0..*" PsychologicalActivity
|
|
|
-SchoolAdmin "1" -- "0..*" PsychologicalSurvey
|
|
|
-PsychologicalSurvey "1" -- "0..*" _User
|
|
|
-_User "1" -- "0..*" Bottle
|
|
|
+Survey "1" -- "0..*" _User
|
|
|
+_User "1" -- "0..*" DriftBottle
|
|
|
_User "*" --> "*" ChatEvaluate
|
|
|
_User "1" --> "*" ChatRecord
|
|
|
ChatPartner "1" --> "*" ChatRecord
|
|
|
-ChatCompanion "1" --> "*" ChatRecord
|
|
|
-ChatRecord "1" --> "1" ChatReport
|
|
|
+ChatCompanion "1" --> "*" ChatRecord
|
|
|
@enduml
|
|
|
```
|