fix: 盲盒想法打标改为后台异步,新增 retag 补打接口

- applyTags 改为 fire-and-forget,用户投入想法立即返回(<200ms)
- 打标超时设为 60s,失败静默,由 /api/blindbox/retag 兜底
- 新增 POST /api/blindbox/retag:补打房间内所有无标签想法
This commit is contained in:
2026-03-02 10:55:27 +08:00
parent 9d891fb702
commit b78063739b
4 changed files with 143 additions and 47 deletions
-1
View File
@@ -42,7 +42,6 @@ describe("POST /api/blindbox (create idea)", () => {
expect(status).toBe(201);
expect(data.id).toBe("idea-1");
expect(data.tags).toBeDefined();
});
it("returns 401 when no userId", async () => {