update example & set reload False
This commit is contained in:
parent
9211bcdc50
commit
05fdaa987d
@ -53,4 +53,4 @@ async def index(request: Request):
|
|||||||
# 使用该方法启动应用: uvicorn backend.main:app --host 0.0.0.0 --port 8322
|
# 使用该方法启动应用: uvicorn backend.main:app --host 0.0.0.0 --port 8322
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import uvicorn
|
import uvicorn
|
||||||
uvicorn.run("backend.main:app", host=settings.host, port=settings.port, reload=True, log_level=settings.log_level)
|
uvicorn.run("backend.main:app", host=settings.host, port=settings.port, reload=False, log_level=settings.log_level)
|
@ -17,11 +17,14 @@ class SMSRecordCreate(BaseModel):
|
|||||||
populate_by_name = True
|
populate_by_name = True
|
||||||
json_schema_extra = {
|
json_schema_extra = {
|
||||||
"example": {
|
"example": {
|
||||||
"from": "10086",
|
"from": "10086",
|
||||||
"contact_name": "中国移动",
|
"contact_name": "中国移动",
|
||||||
"sms": "您的验证码是123456,请在5分钟内完成验证。",
|
"phone_area": "86",
|
||||||
"sim_slot": "SIM1(15012345678)",
|
"sms": "您的验证码是123456,请在5分钟内完成验证。",
|
||||||
"receive_time": "2023-03-15T14:30:00Z"
|
"sim_slot": "SIM1(15012345678)",
|
||||||
|
"sim_sub_id": "sub_id_example",
|
||||||
|
"device_name": "Device_A",
|
||||||
|
"receive_time": "2025-03-15T14:30:00Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user