-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass.puml
101 lines (101 loc) · 3.79 KB
/
class.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
@startuml
class Student {
-_id: number
-_first_name: string
-_last_name: string
-_email: string
-_permanent_code: string
+id(): number
+name(): string
+email(): string
+permanent_code(): string
+followCourse(course_id: number): boolean
+courses(): any[]
+{static} login(email: string, password: string): any[]
+{static} fromId(id: number): Student
+{static} fromToken(token: string): Student
}
class Course {
-_id: number
-_sigle: string
-_nb_max_student: number
-_groupe: string
-_titre: string
-_date_debut: string
-_date_fin: string
+id(): number
+sigle(): string
+nb_max_student(): number
+groupe(): string
+titre(): string
+date_debut(): string
+date_fin(): string
+students(): any[]
+{static} fromId(id: number): Course
+{static} fromSigle(sigle: string): Course[]
}
class Teacher {
-_id: number
-_first_name: string
-_last_name: string
-_email: string
+id(): number
+name(): string
+email(): string
+giveCourse(course_id: number): boolean
+courses(): any[]
+{static} login(email: string, password: string): any[]
+{static} fromId(id: number): Teacher
+{static} fromToken(token: string): Teacher
}
class Notes {
+multimap: any
+set(student_id: number, course_id: number, type: string, type_id: number, note: number): void
+student(student_id: number): any
+course(course_id: number): any[]
+clear(): void
}
class SgbController {
+multimap: any
+notes: Notes
+login(email: string, password: string): any
+loginV2(email: string, password: string): any[]
+courses(token: string): string
+students(token: string, course_id: number): string
+note(token: string, student_id: number, course_id: number, type: string, type_id: number, note: number): void
+studentNote(token: string, course: number, type: string, type_id: number, note: number): void
+studentNotes(token: string): any
+studentCourses(token: string): string
+courseNotes(token: string, course_id: number): any[]
+clearNotes(token: string): void
}
class SgbRouter {
+router: Router
+controller: SgbController
+router_latency: number
+courses(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+students(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+note(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+studentNote(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+studentNotes(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+studentCourses(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+courseNotes(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+login(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+clearNotes(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+latency(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+generate_latency(): void
+init(): void
}
class SgbRouterV2 {
+router: Router
+controller: SgbController
+router_latency: number
+login(req: Request<ParamsDictionary, any, any, QueryString.ParsedQs>, res: Response<any>, next: NextFunction): void
+init(): void
}
class App {
+express: express.Application
-middleware(): void
-routes(): void
}
@enduml