定时任务
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from pydantic import BaseModel
|
||||
from pydantic import BaseModel, Field
|
||||
from typing import Optional
|
||||
from datetime import datetime
|
||||
|
||||
@@ -20,12 +20,13 @@ class AccountUpdate(BaseModel):
|
||||
project_name: Optional[str] = None
|
||||
|
||||
class AccountResponse(AccountBase):
|
||||
id: int
|
||||
account_id: int = Field(alias="id")
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
populate_by_name = True
|
||||
|
||||
class AccountListRequest(BaseModel):
|
||||
skip: Optional[int] = 0
|
||||
|
||||
Reference in New Issue
Block a user