You've already forked DataMate
* feature: implement endpoints with multi-level response models * refactor: move `/health` and `/config` endpoints to system module, remove example from base schemas * refactor: remove unused get_standard_response_model()
10 lines
386 B
Python
10 lines
386 B
Python
from pydantic import Field
|
|
|
|
from app.module.shared.schema import BaseResponseModel
|
|
from app.module.shared.schema import StandardResponse
|
|
|
|
class HealthResponse(BaseResponseModel):
|
|
"""健康检查响应模型"""
|
|
status: str = Field(..., description="服务状态")
|
|
service: str = Field(..., description="服务名称")
|
|
version: str = Field(..., description="应用版本") |