mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-18 20:09:25 +00:00
chore: add todos for later
This commit is contained in:
parent
02a95c42dd
commit
0288e6d88e
4 changed files with 8 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ from datetime import datetime
|
|||
class Collection(BaseModel):
|
||||
name: str
|
||||
description: str
|
||||
elements: List[str]
|
||||
courses: List[str] # course_id
|
||||
|
||||
|
||||
class CollectionInDB(Collection):
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ class CourseInDB(Course):
|
|||
|
||||
class CourseElement(BaseModel):
|
||||
element_id: str
|
||||
content: str
|
||||
content_type: str
|
||||
position: int
|
||||
|
||||
|
||||
|
|
@ -52,6 +54,9 @@ class CourseChapterInDB(CourseChapter):
|
|||
|
||||
#### Classes ####################################################
|
||||
|
||||
# TODO : Add courses photo & cover upload and delete
|
||||
|
||||
|
||||
# Courses
|
||||
|
||||
async def get_course(course_id: str, current_user: User):
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class HouseInDB(House):
|
|||
|
||||
#### Classes ####################################################
|
||||
|
||||
# TODO : Add house photo upload and delete
|
||||
|
||||
async def get_house(house_id: str, current_user: User):
|
||||
await check_database()
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ class UserInDB(UserWithPassword):
|
|||
#### Classes ####################################################
|
||||
|
||||
# TODO : user actions security
|
||||
# TODO : avatar upload and update
|
||||
|
||||
|
||||
async def get_user(username: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue