10 lines
184 B
Python
10 lines
184 B
Python
|
|
from pydantic import BaseModel
|
|
from typing import Generic,TypeVar,Optional
|
|
|
|
T = TypeVar('T')
|
|
|
|
class ApiReturnModel(BaseModel,Generic[T]):
|
|
code:int = 0
|
|
msg:str ="OK"
|
|
data:T |