websoft9/appmanage/api/model/response.py

8 lines
283 B
Python
Raw Normal View History

2023-04-02 21:51:14 +08:00
from typing import List
from pydantic import BaseModel, Field
2023-03-06 07:27:13 +08:00
class Response(BaseModel):
2023-04-02 21:51:14 +08:00
code: int = Field(default=None, description="响应码")
message: str = Field(default=None, description="响应信息")
data: List = Field(default=None, description="响应数据")