Add endpoint to ensure beatmap presence and cache

Introduces a new /beatmaps/ensure API endpoint to verify and cache beatmap metadata and raw files. Updates Playlist model to use auto-incrementing primary key and improves playlist DB insertion logic. Minor formatting and import changes in room and lio modules.
This commit is contained in:
咕谷酱
2025-08-24 03:53:06 +08:00
committed by MingxuanGame
parent 9043389f25
commit 97dcc86d4d
3 changed files with 158 additions and 60 deletions

View File

@@ -74,6 +74,7 @@ class Room(AsyncAttrs, RoomBase, table=True):
)
class RoomResp(RoomBase):
id: int
has_password: bool = False