Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit a7274d3

Browse files
committed
chore: lab #7
1 parent 2147b40 commit a7274d3

File tree

1 file changed

+52
-31
lines changed

1 file changed

+52
-31
lines changed

lab/week_7/lab_7.py

Lines changed: 52 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ def __init__(self, id, password, status):
1919
self.__password = password
2020
self.__status = status
2121

22-
def changePassword(self):
22+
def check_password(self):
23+
pass
24+
25+
def create_user(self):
26+
pass
27+
28+
def logout_account(self):
2329
pass
2430

2531

@@ -33,10 +39,13 @@ def __init__(self, fullname, email, phone_number, address, birth_date, emergency
3339
self.__emergency_contact_fullname = emergency_contact_fullname
3440
self.__emergency_contact_phone_number = emergency_contact_phone_number
3541

36-
def makeBooking(self):
42+
def add_booking(self, slot, description):
3743
pass
3844

39-
def getBooking(self):
45+
def get_booking_detail(self):
46+
pass
47+
48+
def search_booking_by_id(self, id):
4049
pass
4150

4251

@@ -45,13 +54,10 @@ def __init__(self, fullname, email, phone_number, address, birth_date, emergency
4554
super().__init__(fullname, email, phone_number, address, birth_date,
4655
emergency_contact_fullname, emergency_contact_phone_number)
4756

48-
def addBooking(self):
49-
pass
50-
51-
def addSlot(self):
57+
def add_slot(self):
5258
pass
5359

54-
def approveBooking(self):
60+
def approve_booking(self):
5561
pass
5662

5763

@@ -66,51 +72,54 @@ def __init__(self, fullname, email, phone_number, address, birth_date, emergency
6672
super().__init__(fullname, email, phone_number, address, birth_date,
6773
emergency_contact_fullname, emergency_contact_phone_number)
6874

69-
def addField(self):
70-
pass
71-
72-
def editField(self):
75+
def add_field(self, name, description, price_by_slot, category, type, slot):
7376
pass
7477

75-
def deleteField(self):
78+
def edit_field(self, name, description, price_by_slot, category, type, slot):
7679
pass
7780

78-
def addBooking(self):
81+
def delete_field(self):
7982
pass
8083

81-
def approveBooking(self):
84+
def approve_booking(self):
8285
pass
8386

84-
def addNews(self):
87+
def add_news(self, title, content, image_url, created_on, status):
8588
pass
8689

87-
def editNews(self):
90+
def edit_news(self, title, content, image_url, created_on, status):
8891
pass
8992

90-
def deleteNews(self):
93+
def delete_news(self):
9194
pass
9295

93-
def addSlot(self):
96+
def add_slot(self, created_on, start_time, end_time):
9497
pass
9598

96-
def editSlot(self):
99+
def edit_slot(self, created_on, start_time, end_time):
97100
pass
98101

99-
def deleteSlot(self):
102+
def delete_slot(self):
100103
pass
101104

102-
def blockUser(self):
105+
def block_user(self):
103106
pass
104107

105108

106109
class Guest:
107110
def __init__(self):
108111
pass
109112

110-
def registerAccount(self):
113+
def register_account(self):
114+
pass
115+
116+
def login_account(self):
117+
pass
118+
119+
def check_register(self):
111120
pass
112121

113-
def loginAccount(self):
122+
def check_login(self):
114123
pass
115124

116125

@@ -133,11 +142,23 @@ def __init__(self, booking_id, status, created_on, description):
133142
def cancel(self):
134143
pass
135144

145+
def create_payment(self):
146+
pass
147+
148+
def set_equipment(self):
149+
pass
150+
151+
def get_booking_detail(self):
152+
pass
153+
136154

137155
class BookingHistory:
138156
def __init__(self, booking):
139157
self.__booking = booking
140158

159+
def search_booking_by_id(self):
160+
pass
161+
141162

142163
class Equipment:
143164
def __init__(self, name, price, item):
@@ -177,20 +198,20 @@ def __init__(self, name, description, price_by_slot, category, type):
177198
self.__category = category
178199
self.__type = type
179200

180-
def getSlot(self):
201+
def get_slot(self, field, date):
202+
pass
203+
204+
def get_field_detail(self):
181205
pass
182206

183207

184208
class Category:
185209
def __init__(self, fields):
186210
self.__field_category = fields
187-
188-
def search_by_category(self):
189-
pass
190-
191-
def search_by_date(self):
211+
212+
def search_field(self, date, catalog):
192213
pass
193-
214+
194215

195216
class Payment:
196217
def __init__(self, amount, created_on, payment_status, transaction_id):

0 commit comments

Comments
 (0)