示例#1
0
 def get_all_by_teacher_id(self, teacher_id: int):
     return Lessons.get_all_by_teacher_id(teacher_id)
示例#2
0
 def new(self, group_id, title, description, file_path, lesson_date):
     return Lessons.new(group_id, title, description, file_path, lesson_date)
示例#3
0
 def get_all(self):
     return Lessons().get_all()
示例#4
0
 def find_by_id(self, id):
     return Lessons.find_by_id(id)
示例#5
0
 def all(self, group_id):
     return Lessons.get_lessons_by_group_id(group_id)
示例#6
0
 def delete(self, id):
     return Lessons.delete(id)
示例#7
0
 def edit(self, title, description, file_path, lesson_date):
     return Lessons.edit(title, description, file_path, lesson_date)