This commit is contained in:
xyj 2023-12-18 11:17:47 +08:00
parent a6db80feca
commit 639d9f61cb
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ from pydantic import BaseModel
from config import mp4_path, post_record_list_url, post_record_url, info_topic
class BaseResponse(BaseModel):
code: int = pydantic.Field(200, description="MQTT Return Status Code")
msg: str = pydantic.Field("success", description="MQTT Status Message")
class BaseResponse:
code: int
msg: str
# 统一返回