Gift-Code-Web/models/code.py
2023-06-10 22:20:58 +08:00

20 lines
261 B
Python

from typing import List
from pydantic import BaseModel
class Reward(BaseModel):
name: str
cnt: int
class Code(BaseModel):
code: str
reward: List[Reward]
expire: int
class CodeList(BaseModel):
main: List[Code]
over: List[Code]