test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
Showing only changes of commit 0abc121e64 - Show all commits
+5 -1
View File
@@ -154,7 +154,11 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)):
threading.Thread(target=delete_file, args=([{'type': info.type, 'text': info.text}],)).start()
db.delete(info)
db.commit()
return {'code': 200, 'msg': '取件成功,请点击""查看', 'data': info}
return {
'code': 200,
'msg': '取件成功,请点击""查看',
'data': {'type': info.type, 'text': info.text, 'name': info.name, 'code': info.code}
}
@app.post('/share')