topfans/backend/services
zerosaturation a9ce281d5e feat(asset): emit task:event on mint success (fix daily_mint 悬空)
assetService 接入 MQ producer:铸造成功时 emit `task:event { event_type: daily_mint }`,
由 taskService consumer 异步调 ProcessTaskEvent 完成判定。

- main.go: 初始化 MQ (Asynq producer-only),沿用 galleryService 模式;
  失败仅 Warn 不阻塞主路径
- service/mint_service.go: CreateMintOrder 成功分支 fire-and-forget emit
- mq/producer.go: 新增 EnqueueTaskEvent helper,封装 TaskEventPayload marshal +
  adapter.TaskProducer.Enqueue

配套:spec §4 / Phase F.1 / impl plan Phase D。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 15:45:42 +08:00
..
activityService fix(config): port alignment + service test doubles (batch 4.1/4.5) 2026-07-24 14:02:14 +08:00
aiChatService fix(backend): service stability — batch 3 accumulated (bcrypt off-txn / login anti-enum / MQ stub / aiChat / event reliability / gateway aggregate) 2026-07-24 14:03:21 +08:00
assetService feat(asset): emit task:event on mint success (fix daily_mint 悬空) 2026-07-27 15:45:42 +08:00
galleryService fix(backend): service stability — batch 3 accumulated (bcrypt off-txn / login anti-enum / MQ stub / aiChat / event reliability / gateway aggregate) 2026-07-24 14:03:21 +08:00
moderationService fix(moderationService): start health server on port+1000 (follow-up P1) 2026-07-24 15:14:31 +08:00
notificationService fix(config): port alignment + service test doubles (batch 4.1/4.5) 2026-07-24 14:02:14 +08:00
socialService fix(config): port alignment + service test doubles (batch 4.1/4.5) 2026-07-24 14:02:14 +08:00
statisticService fix(config): port alignment + service test doubles (batch 4.1/4.5) 2026-07-24 14:02:14 +08:00
taskService feat(task): register task:event MQ consumer 2026-07-27 15:42:10 +08:00
userService fix(backend): service stability — batch 3 accumulated (bcrypt off-txn / login anti-enum / MQ stub / aiChat / event reliability / gateway aggregate) 2026-07-24 14:03:21 +08:00