赋能中心新增展厅使用登记实时读取

This commit is contained in:
2026-11-20 11:59:02 +08:00
parent 21e7881344
commit 1d4d148560
4 changed files with 157 additions and 4 deletions
+7
View File
@@ -260,6 +260,13 @@ def convert_package(raw):
def install(app, get_db, current_user, photo_root, visible_clause):
from .hall_log import snapshot as hall_log_snapshot
@app.get('/api/center/hall-log')
async def hall_log(refresh: bool = False, viewer=Depends(current_user)):
"""赋能中心展厅使用登记(实时读取金山文档在线表格)。"""
return await hall_log_snapshot(force=refresh)
@app.post('/api/center/materials')
async def upload_material(request:Request,db=Depends(get_db),viewer=Depends(current_user)):
raw=bytearray()