Gift-Code-Web/models/code.py

20 lines
261 B
Python
Raw Normal View History

2023-06-10 14:20:58 +00:00
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]