mirror of
https://github.com/Xtao-Labs/WakeUp2XiaoAi.git
synced 2024-09-28 03:46:16 +00:00
31 lines
461 B
Python
31 lines
461 B
Python
from typing import List
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class AiCourse(BaseModel):
|
|
name: str
|
|
position: str
|
|
teacher: str
|
|
weeks: str
|
|
day: int
|
|
style: str
|
|
sections: str
|
|
|
|
|
|
class TabCourse(AiCourse):
|
|
id: int
|
|
|
|
|
|
class AiCourseInfo(BaseModel):
|
|
userId: int
|
|
deviceId: str
|
|
ctId: int
|
|
course: AiCourse
|
|
sourceName: str = "course-app-browser"
|
|
|
|
|
|
class Table(BaseModel):
|
|
id: int
|
|
name: str
|
|
courses: List[TabCourse]
|