WakeUp2XiaoAi/models/xiaoai.py
2023-03-06 14:11:16 +00:00

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]