陈晋瑭
|
6c2e88c485
|
feat(beatmap): 添加谱面用户标签功能 (#25)
* feat(tags): 添加 beatmap tags 相关功能
- 新增 BeatmapTags 模型类,用于表示 beatmap 的标签信息
- 实现加载标签数据、根据 ID 获取标签、获取所有标签等功能
* feat(database): 新增 BeatmapTagVote 数据库模型和迁移脚本
* fix(database): 修改 BeatmapTagVote 模型并创建新表
- 将 BeatmapTagVote 模型的表名从 "beatmap_tag_votes" 改为 "beatmap_tags"
- 创建新的数据库迁移文件以替换错误的原迁移文件
- 删除错误的迁移文件 "4a827ddba235_add_table_beatmap_tags.py"
* feat(tags): 添加用户标签功能
- 在 BeatmapResp 类中添加了 top_tag_ids 和 current_user_tag_ids 字段
- 新增了 /tags 相关的路由,包括获取所有标签和投票/取消投票功能
- 实现了标签投票和取消投票的数据库操作
* fix(tags): 修复标签投票查询和返回过程中的逻辑问题
- 修复 BeatmapResp 类中 current_user_tag_ids 字段的查询逻辑
- 优化 vote_beatmap_tags 函数中的标签验证过程
* fix(tags): add suggested changes from reviews
- 在 BeatmapResp 中添加 top_tag_ids 和 current_user_tag_ids 字段
- 实现用户标签投票功能,包括检查用户是否有资格投票
- 优化标签数据的加载方式
- 调整标签相关路由,增加路径参数描述
* fix(tags): apply changes from review
* fix(tag): apply changes from review suggests
- 更新标签接口文档,统一参数描述
- 修改标签投票接口状态码为 204
- 优化标签投票接口的用户认证方式
- 改进标签相关错误处理,使用更友好的错误信息
* fix(tag): use client authorization
* chore(linter): auto fix by pre-commit hooks
---------
Co-authored-by: MingxuanGame <MingxuanGame@outlook.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2025-08-30 16:23:59 +08:00 |
|
MingxuanGame
|
598fcc8b38
|
refactor(project): make pyright & ruff happy
|
2025-08-22 08:21:52 +00:00 |
|
MingxuanGame
|
219f19d623
|
feat(beatmap,score): support failtime & more exact playtime
|
2025-08-18 08:48:13 +00:00 |
|
MingxuanGame
|
0e35a19167
|
fix(beatmap): do not add to database when existed
|
2025-08-17 17:18:05 +00:00 |
|
MingxuanGame
|
814d9c4618
|
refactor(detector): more readable
|
2025-08-15 08:52:01 +00:00 |
|
chenjintang-shrimp
|
7c7c68c163
|
feat(detector): 新增封禁谱面表并检查可疑谱面
- 在数据库中添加了封禁谱面表(banned_beatmaps)
- 实现了检查可疑谱面的功能,将不符合规范的谱面添加到封禁列表
- 更新了相关的模型和迁移文件
|
2025-08-15 08:05:02 +00:00 |
|
MingxuanGame
|
46a1d049fe
|
refactor(score): replace MODE_TO_INT INT_TO_MODE with int(mode) GameMode.from_int
|
2025-08-14 13:04:59 +00:00 |
|
MingxuanGame
|
a8906b8194
|
feat(v1-api): support api v1
|
2025-08-14 09:11:53 +00:00 |
|
MingxuanGame
|
3f5b242c6f
|
fix(beatmap): make max_combo nullable
|
2025-08-13 15:39:24 +00:00 |
|
MingxuanGame
|
4b5aefb946
|
feat(beatmapset): support search beatmapset
|
2025-08-13 07:55:48 +00:00 |
|
MingxuanGame
|
bc782cda01
|
fix(beatmap): missing greetlet in batch beatmap request
|
2025-08-10 17:00:29 +00:00 |
|
MingxuanGame
|
1891496832
|
fix(beatmap,playlist): missing greetlet
|
2025-08-10 13:31:08 +00:00 |
|
MingxuanGame
|
efc784d903
|
feat(score): support osu-rx & osu-ap & all beatmap leaderboard like osu.ppy.sb
|
2025-08-10 07:03:49 +00:00 |
|
MingxuanGame
|
36b59ac853
|
fix(database): fix pydantic warnings
|
2025-08-10 04:30:06 +00:00 |
|
MingxuanGame
|
bee0befc26
|
chore(merge): merge pull request #8 from feat/multiplayer-api
feat: 增加mp房间相关接口
|
2025-08-10 00:00:47 +08:00 |
|
MingxuanGame
|
4f3ab38454
|
feat(beatmap): support playcount & passcount
|
2025-08-06 12:07:12 +00:00 |
|
MingxuanGame
|
eb3f1823b1
|
chore(merge): merge branch 'main' into feat/multiplayer-api
|
2025-08-01 05:24:12 +00:00 |
|
MingxuanGame
|
d938998239
|
feat(beatmapset): support post favoutite to beatmapset
|
2025-08-01 04:22:17 +00:00 |
|
MingxuanGame
|
be401e8885
|
refactor(database): 优化数据库关联对象的载入 (#10)
|
2025-07-31 20:11:22 +08:00 |
|
MingxuanGame
|
9ce99398ab
|
refactor(user): refactor user database
**Breaking Change**
用户表变为 lazer_users
建议删除与用户关联的表进行迁移
|
2025-07-30 16:17:09 +00:00 |
|
jimmy-sketch
|
6d736528e3
|
refactor(multiplayer): 重构房间模型并添加新功能
- 重构 Room 模型,增加多个新字段和方法
- 新增 PlaylistItem 和 MultiplayerRoom 类
- 优化 MultiPlayerListItem 类,添加 from_mpListItem 方法
- 调整 Beatmap 类,将 id 字段标记为非可选
|
2025-07-29 07:05:44 +00:00 |
|
MingxuanGame
|
2cd84f6175
|
fix(beatmap): fail to read beatmapset when using from_resp
|
2025-07-28 10:39:49 +00:00 |
|
MingxuanGame
|
19895789ac
|
feat(beatmap): support lookup api
|
2025-07-27 09:01:33 +00:00 |
|
MingxuanGame
|
ec241ac200
|
fix(solo-score): fix submit solo-score & Bigint
|
2025-07-27 04:11:41 +00:00 |
|
MingxuanGame
|
b359be3637
|
feat(solo-score): support submit solo scores
|
2025-07-27 02:33:42 +00:00 |
|
MingxuanGame
|
900a17f815
|
feat(beatmap): implement get beatmap arrtibutes
|
2025-07-26 17:31:23 +00:00 |
|
MingxuanGame
|
8d6b5a882d
|
feat(fetcher): add data fetcher for beatmap & beatmapset
|
2025-07-26 17:01:46 +08:00 |
|
MingxuanGame
|
585cb9d98a
|
fix(database): fix score database
|
2025-07-26 12:05:54 +08:00 |
|
MingxuanGame
|
376d98ad5a
|
feat(beatmap,beatmapset): get beatmap & beatmapset information by id
|
2025-07-25 17:01:01 +08:00 |
|