Commit Graph

145 Commits

Author SHA1 Message Date
zerosaturation
7734d33697 feat:修改ws的配置 2026-06-15 22:33:37 +08:00
zerosaturation
060e4944fa fix:修改JWTbug 2026-06-15 21:12:59 +08:00
zerosaturation
1bc86f0447 feat:修改压测配置 2026-06-15 20:10:56 +08:00
zerosaturation
0aa02cc3a4 fix:修改压测的bug 2026-06-15 17:14:21 +08:00
zerosaturation
271e0350c7 feat:重构code状态码 2026-06-15 16:28:35 +08:00
f30655ec64 feat:添加压测工具脚本 2026-06-15 15:28:25 +08:00
a8936113a5 feat(seed): insert loadtest star (star_id=999900) 2026-06-15 15:28:25 +08:00
674b2a10e5 feat(seed): main.go skeleton with config, DB open, cleanup subcommand 2026-06-15 15:28:25 +08:00
zerosaturation
56fc2f6beb feat:修改密码增加手机号+短信验证 2026-06-15 14:15:24 +08:00
zerosaturation
83d1bec422 feat:修改本地和服务器区分数据库的密码 2026-06-14 22:41:16 +08:00
zerosaturation
19890d5908 feat:修改数据库配置密码,修改星榜样式 2026-06-14 22:19:32 +08:00
zerosaturation
b38174917a feat:修改配置 2026-06-14 21:04:05 +08:00
zerosaturation
280b4bbee0 feat:docker新增统计的微服务 2026-06-11 16:35:56 +08:00
zerosaturation
dfb79af4b1 feat: 铸造菜单改为动态配置 2026-06-09 12:38:12 +08:00
zerosaturation
4f3bb7e3ab feat:修改数据看板sql的数据问题 2026-06-09 01:24:03 +08:00
zerosaturation
d859650136 feat:修改数据看板 2026-06-09 00:37:42 +08:00
zerosaturation
0029fb8cc8 feat(statistic): T9-T12 dashboard 7 RPCs - additional business-side service modifications
Modifications to 5 existing business services for TrackEvent integration:
- socialService/asset_like_service.go: TrackEvent(asset.like) after LikeAsset
- galleryService/exhibition_service.go: TrackEvent(exhibition.start) + (exhibition.end with duration)
- taskService/revenue_service.go: TrackEvent(exhibition.revenue) after OnExhibitionCompleted
- assetService/mint_service.go: TrackEvent(asset.mint) after CreateMintOrder
- assetService/asset_level_service.go: TrackEvent(asset.level_up) in logLevelChange
- userService/user_service.go: fireCrystalChangeEvent wrapper (call site TBD by service owner)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 17:20:53 +08:00
zerosaturation
3d3f2260f3 feat(statistic): T13-T16 Gateway routes + 5-service business integration (7/7 event types)
Gateway:
- 7 routes /api/v1/dashboard/* with JWT auth (middleware.AuthMiddleware)
- statistic_controller.go: 7 methods, response format {code:200, data:resp}
- gateway/main.go: StatisticServiceClient wired
- gateway/config: StatisticServiceURL (DUBBO_STATISTIC_SERVICE_URL, default tri://127.0.0.1:20009)

pkg/statistic SDK:
- fire-and-forget TrackEvent + BatchTrackEvent
- Init(client) + Get() global singleton pattern

Business-side integration (7/7 event types):
- socialService.LikeAsset → asset.like
- galleryService.PlaceAsset → exhibition.start
- galleryService.RemoveFromSlot → exhibition.end (with duration_ms)
- taskService.OnExhibitionCompleted → exhibition.revenue
- assetService.CreateMintOrder → asset.mint
- assetService.logLevelChange → asset.level_up
- userService.UpdateCrystalBalance → crystal.change (wrapper fn added)

Cache warmup:
- main.go: 7 RPCs x 5 sample starIDs at startup (15s delay)
- prevents cold-start DB thundering herd

Existing service modifications:
- galleryService/exhibition_service.go
- taskService/revenue_service.go
- assetService/{mint_service,asset_level_service}.go
- userService/user_service.go
- socialService/asset_like_service.go

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 17:20:53 +08:00
zerosaturation
dd9952ccc9 feat(statistic): T9-T12 dashboard 7 RPCs (Provider + Materializer + Service + Cache)
- StatisticInternalProvider: TrackEvent/BatchTrackEvent
- StatisticCombinedProvider: all 9 RPCs (7 dashboard + 2 event) on single service
- materializer: 4 MV REFRESH CONCURRENTLY + pg_try_advisory_lock + refresh_log
- dashboard_repo: 7 aggregation SQLs (week_rank / 7d curve / top5 / level dist / upgrade progress)
- dashboard_service: 7 RPCs with Redis 5min TTL + cache miss protection (1min empty)
- Cache wrapper: JSON serialize + format dash:{rpc}:{starID}:{userID}
- main.go: integrated workers + Dubbo triple server :20009
- cross-service userService.GetFanProfile (for crystal_balance)
- client/user_rpc_client.go

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 17:20:53 +08:00
zerosaturation
bed8f8e578 feat(statistic): T4-T8 event collection framework (Event + Sink + Repo + Service + Workers)
- Event model + ToJSON
- EventSink interface + ChannelEventSink (non-blocking Submit)
- event_repo: batch INSERT ON CONFLICT DO NOTHING dedup
- event_service: 7-type whitelist + 1KB props limit + ReceivedAt auto-fill
- event_flusher: 100/1s batch + sync metric_recent_level_ups on level_up
- metric_weekly + metric_upcoming workers (5min/15min with pg_try_advisory_lock)
- partitioner: 7-day pre-create + 30-day cleanup (00:05 create / 00:30 cleanup)
- 22 unit + integration tests (model/repo/service/sink/worker)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 17:20:53 +08:00
zerosaturation
f5ece5e1d2 feat(statistic): T3 service skeleton (config + main + healthz + metrics + 10 SQL)
- 6 config blocks (DB/Redis/Channel/Refresh/Partition/Extension with 4 EnableXxx=false)
- 14 Prometheus metric declarations
- self-impl healthz (/healthz + /metrics) — bypasses pkg/health to keep /metrics
- main.go startup: logger → config → DB → Redis → healthz HTTP :21009
- 10 SQL migrations: events partitioned + 4 MV + 3 pre-agg + refresh_log + 7-day initial

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 17:20:53 +08:00
zerosaturation
4212914057 feat(statistic): add event.proto and statistic.proto with 7 RPCs + 2 event RPCs 2026-06-08 17:20:53 +08:00
zerosaturation
3707125549 feat(statistic): scaffold statisticService with go.mod and directory structure 2026-06-08 17:20:53 +08:00
zerosaturation
23a8051e96 feat: 修改头像显示不全,修改docker的配置 2026-06-04 16:41:20 +08:00
zerosaturation
456bf10352 feat: 修改合并bug 2026-06-04 00:52:32 +08:00
f0b650de26 feat: 解决合并冲突 2026-06-04 00:03:40 +08:00
bc3d82e20e fix: 合并冲突 2026-06-03 23:44:33 +08:00
liulong
6ff8743c72 feat:修复合并问题 2026-06-03 23:25:08 +08:00
liulong
b9527bee70 feat:合并新 2026-06-03 22:41:19 +08:00
liulong
10168f8e6b feat:实现AI生成镭射卡功能 2026-06-03 22:19:22 +08:00
4aa11903f4 fix: 样式修复、创作者头像修复 2026-06-03 18:13:16 +08:00
zerosaturation
edadb0e082 feat:修改头像bug 2026-06-02 21:10:35 +08:00
zerosaturation
e1829b2296 feat: 修改短信认证bug 2026-06-02 15:43:57 +08:00
zerosaturation
44f368cda0 feat: 修改bug 2026-06-01 15:08:25 +08:00
zerosaturation
5e33bbb031 feat: 修改用户经验bug和收益记录bug 2026-05-31 20:38:58 +08:00
zerosaturation
d5a645eaea feat: 给榜单增加字段 2026-05-29 19:47:09 +08:00
liulong
889c9232fb feat:镭射新链路,旧链路清理,迁移脚本 2026-05-29 12:35:37 +08:00
zerosaturation
3f58a82a91 feat: 修改藏品展示等级和藏品没有同步问题 2026-05-29 12:18:40 +08:00
zerosaturation
9a9f4d1b96 feat: 新增点赞列表标签增加 2026-05-28 17:45:07 +08:00
5b6951eef2 docs: 点赞标签文档设计 2026-05-28 12:11:31 +08:00
zerosaturation
17c68c9233 feat:增加的ai搭子对话功能 2026-05-28 12:00:19 +08:00
zerosaturation
9b0c3ee3a9 docs:ai搭子修改,热门模块新增,字段判断基础文档 2026-05-27 16:49:58 +08:00
b0b47e4608 docs: 添加文档设计 2026-05-27 11:09:56 +08:00
zerosaturation
dd34def217 feat:修改点赞接口bug 2026-05-26 21:32:37 +08:00
zerosaturation
b8e462f9b5 feat:修改广场页面,铸造页面 2026-05-26 19:26:27 +08:00
zerosaturation
a39bb7b60f feat:新增sms短信注册 2026-05-26 13:23:04 +08:00
zerosaturation
da6c0a5ef2 feat: 修改瀑布流布局 2026-05-25 23:35:47 +08:00
zerosaturation
e545f41c3b feat:修改类型为复合类型 2026-05-25 19:03:36 +08:00
zerosaturation
0852f96436 feat:去掉重复的点赞约束 2026-05-25 19:03:35 +08:00
zerosaturation
7c5d5a7275 feat:修改藏品等级硬编码改为根据数据库的配置来定义 2026-05-25 19:03:32 +08:00