赋能中心新增展厅使用登记实时读取
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user