Initial project commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class PointBalance(BaseModel):
|
||||
balance: int
|
||||
|
||||
|
||||
class PointRecord(BaseModel):
|
||||
id: int
|
||||
change: int
|
||||
balance: int
|
||||
reason: str
|
||||
ref_type: str | None = None
|
||||
ref_id: int | None = None
|
||||
created_at: datetime | None = None
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
Reference in New Issue
Block a user