feat: 戒烟成就、梦想图标预设、打卡统计与依赖注入调整

- 成就系统、连续打卡天数计算、管理后台成就 CRUD
- 梦想目标图标预设 DreamPreset 与用户端 dream-presets 接口
- 管理后台梦想图标 CRUD;戒烟打卡 summary 修正
- 忽略根目录编译产物 /api

Made-with: Cursor
This commit is contained in:
nepiedg
2026-04-04 14:55:50 +08:00
parent 1c0aeb152a
commit fd097729d7
20 changed files with 849 additions and 12 deletions
+8
View File
@@ -10,8 +10,10 @@ import (
"github.com/gin-gonic/gin"
"wx_service/internal/achievement"
"wx_service/internal/middleware"
"wx_service/internal/model"
quitcheckinservice "wx_service/internal/quitcheckin/service"
smokeservice "wx_service/internal/smoke/service"
)
@@ -22,6 +24,8 @@ type SmokeHandler struct {
smokeNextService *smokeservice.SmokeNextService
smokeAINextService *smokeservice.SmokeAINextSmokeService
smokeShareService *smokeservice.SmokeShareService
achievementService *achievement.Service
quitCheckinService *quitcheckinservice.Service
}
func NewSmokeHandler(
@@ -31,6 +35,8 @@ func NewSmokeHandler(
smokeNextService *smokeservice.SmokeNextService,
smokeAINextService *smokeservice.SmokeAINextSmokeService,
smokeShareService *smokeservice.SmokeShareService,
achievementService *achievement.Service,
quitCheckinService *quitcheckinservice.Service,
) *SmokeHandler {
return &SmokeHandler{
smokeLogService: smokeLogService,
@@ -39,6 +45,8 @@ func NewSmokeHandler(
smokeNextService: smokeNextService,
smokeAINextService: smokeAINextService,
smokeShareService: smokeShareService,
achievementService: achievementService,
quitCheckinService: quitCheckinService,
}
}