-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlecturer.py
69 lines (46 loc) · 1.35 KB
/
lecturer.py
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
from calendar_backend.models import ApproveStatuses
from .base import Base, CommentLecturer, EventGet, LecturerGet
class LecturerPhotos(Base):
items: list[str]
limit: int
offset: int
total: int
class LecturerPatch(Base):
first_name: str | None = None
middle_name: str | None = None
last_name: str | None = None
avatar_id: int | None = None
description: str | None = None
def __repr__(self):
return f"Lecturer(first_name={self.first_name}, middle_name={self.middle_name}, last_name={self.last_name})"
class LecturerPost(Base):
first_name: str
middle_name: str
last_name: str
description: str | None = None
def __repr__(self):
return f"Lecturer(first_name={self.first_name}, middle_name={self.middle_name}, last_name={self.last_name})"
class GetListLecturer(Base):
items: list[LecturerGet]
limit: int
offset: int
total: int
class Photo(Base):
id: int
lecturer_id: int
link: str
class LecturerEvents(LecturerGet):
events: list[EventGet]
class LecturerCommentPost(Base):
author_name: str
text: str
class LecturerCommentPatch(Base):
author_name: str | None = None
text: str | None = None
class LecturerComments(Base):
items: list[CommentLecturer]
limit: int
offset: int
total: int
class Action(Base):
action: ApproveStatuses