mirror of
https://github.com/PaiGramTeam/Gift-Code-Web.git
synced 2024-11-21 22:58:18 +00:00
20 lines
261 B
Python
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]
|