feat(smoke): 增加 AI 今日总结接口与首页缓存透出

This commit is contained in:
root
2026-03-13 21:29:57 +08:00
parent 93bcc6c787
commit c42492da5f
4 changed files with 262 additions and 11 deletions
+3
View File
@@ -37,6 +37,9 @@ func registerSmokeRoutes(protected *gin.RouterGroup, smokeHandler *smokehandler.
// AI 下次抽烟时间建议(结构化时间节点)
smoke.GET("/ai/next_smoke_time", smokeHandler.GetAINextSmokeTime)
// AI 今日总结(分析当天抽烟数据,生成总结和建议)
smoke.GET("/ai/daily_summary", smokeHandler.GetAIDailySummary)
// 分享:用于给新用户只读展示统计与历史记录
smoke.POST("/share", smokeHandler.CreateShare)
smoke.GET("/share/:token", smokeHandler.GetShareView)