You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
413 B
21 lines
413 B
# app/schemas/quick_question.py
|
|
from pydantic import BaseModel
|
|
|
|
class QuickQuestionBase(BaseModel):
|
|
title: str
|
|
order_num: int
|
|
status: str
|
|
content: str
|
|
|
|
class QuickQuestionCreate(QuickQuestionBase):
|
|
pass
|
|
|
|
class QuickQuestionUpdate(QuickQuestionBase):
|
|
id: int
|
|
|
|
class QuickQuestionResponse(QuickQuestionBase):
|
|
id: int
|
|
create_time: str
|
|
|
|
class Config:
|
|
from_attributes = True |