websoft9/appmanage/api/model/response.py
2023-04-02 21:51:14 +08:00

7 lines
283 B
Python

from typing import List
from pydantic import BaseModel, Field
class Response(BaseModel):
code: int = Field(default=None, description="响应码")
message: str = Field(default=None, description="响应信息")
data: List = Field(default=None, description="响应数据")