feat: OTA热更新 — 版本检测API + App端WGT下载安装 + app_versions表
This commit is contained in:
14
backend/app/schemas/app_version.py
Normal file
14
backend/app/schemas/app_version.py
Normal file
@ -0,0 +1,14 @@
|
||||
"""App 版本 Schema"""
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class AppVersionResponse(BaseModel):
|
||||
"""返回给 App 的版本信息"""
|
||||
version: str
|
||||
version_code: int
|
||||
has_update: bool
|
||||
wgt_url: str | None = None
|
||||
description: str | None = None
|
||||
force_update: bool = False
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
Reference in New Issue
Block a user