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.
14 lines
313 B
14 lines
313 B
1 month ago
|
from pydantic import BaseModel
|
||
|
from typing import Optional
|
||
|
|
||
|
class KbModel(BaseModel):
|
||
|
kb_name: str
|
||
|
short_name: str
|
||
|
is_delete: Optional[int] = 0
|
||
|
|
||
|
class KbFileModel(BaseModel):
|
||
|
file_name: str
|
||
|
ext_name: str
|
||
|
kb_id: int
|
||
|
is_delete: Optional[int] = 0
|
||
|
state: Optional[int] = 0
|