nepiedg
a32ec911a1
feat(quitcheckin): persist hp and log hp changes
2026-04-16 11:33:41 +08:00
nepiedg
6e0a06cfcf
feat(smoke): support reason tags on smoke logs
2026-04-16 11:06:14 +08:00
hello-dd-code
411ded8a0c
feat(auth): add mini program test code endpoint ( #51 )
2026-04-11 01:49:18 +08:00
nepiedg
a6f0bfd4e8
feat(admin): add quit-checkin admin endpoints and smoke profile fields
...
Made-with: Cursor
2026-04-07 22:10:31 +08:00
nepiedg
fd097729d7
feat: 戒烟成就、梦想图标预设、打卡统计与依赖注入调整
...
- 成就系统、连续打卡天数计算、管理后台成就 CRUD
- 梦想目标图标预设 DreamPreset 与用户端 dream-presets 接口
- 管理后台梦想图标 CRUD;戒烟打卡 summary 修正
- 忽略根目录编译产物 /api
Made-with: Cursor
2026-04-04 14:55:50 +08:00
nepiedg
1c0aeb152a
feat(marketing): user profile update, ad placement management, logo limits
...
- Add PUT /auth/profile endpoint for nickname and avatar updates
- Add ad_placements table and CRUD admin API for managing ad units
- Add GET /marketing/ad-config public API for mini-program to fetch ad config
- Reduce logo limit from 10 to 3 per user, add 2MB file size validation
Made-with: Cursor
2026-04-04 04:02:06 +08:00
nepiedg
b4170b4863
feat(marketing): add user logo management module
...
Users can now save uploaded logos to the backend (marketing_user_logos table),
avoiding repeated uploads. Includes CRUD endpoints: list, save, delete with
a per-user limit of 10 logos.
Made-with: Cursor
2026-04-04 03:46:57 +08:00
nepiedg
1eab1b99c1
feat: rename qiniu to oss, add admin upload proxy with thumbnail, add dev-login
...
- Rename all QINIU_* config/code/docs to OSS_* to match actual Alibaba Cloud OSS
- Refactor upload module from internal/common/qiniu to internal/common/upload
- Add backend proxy upload endpoint (POST /api/admin/marketing/upload) to avoid CORS
- Auto-generate compressed thumbnail (800px, JPEG 80%) on admin image upload
- Add dev-login endpoint (POST /api/v1/auth/dev-login) for H5 debugging
- Add imageutil package for server-side image resizing
Made-with: Cursor
2026-04-04 02:52:16 +08:00
hello-dd-code
aeaf6a04c2
Merge pull request #49 from hello-dd-code/feat/quitcheckin-v2-backend
...
feat(auth): return smoke mode in login response
2026-04-02 01:08:08 +08:00
nepiedg
0f624a5c07
feat(auth): return smoke mode in login response
2026-04-02 00:37:54 +08:00
你çnepiedg
47874a8769
feat(smoke): enhance smoke profile area management with new features
2026-03-24 18:26:20 +08:00
你çnepiedg
515fba0b55
feat: update smoke profile area handling
2026-03-19 15:41:26 +08:00
你çnepiedg
9278260681
feat: add quit-checkin v2 backend APIs
2026-03-17 00:47:33 +08:00
你çnepiedg
12619aa4ab
feat(database): add repairSmokeAIAdviceIndexes function and corresponding tests
...
- Implemented repairSmokeAIAdviceIndexes to manage the unique index for fa_smoke_ai_advice.
- Added unit tests for the new function to ensure correct index recreation and validation.
- Updated AutoMigrate to include the new index repair function.
2026-03-16 15:35:32 +08:00
root
6b5ce40140
fix(smoke): 修复首页 AI 建议降级与节点索引
2026-03-14 00:22:28 +08:00
hello-dd-code
4b52b6eefe
Merge pull request #48 from hello-dd-code/codex/smoke-ai-daily-summary
...
[codex] 增加 AI 今日总结接口与首页缓存透出
2026-03-13 21:49:55 +08:00
root
c42492da5f
feat(smoke): 增加 AI 今日总结接口与首页缓存透出
2026-03-13 21:29:57 +08:00
hello-dd-code
93bcc6c787
feat(smoke): 添加个性化戒烟计划生成功能 (Issue #46 )
...
- 新增 Model 层: SmokeQuitPlan, SmokeQuitPlanDay 结构体
- 新增 Service 层: GenerateQuitPlan, GetActivePlan, GetPlanDays, ResetPlan
- 新增 Handler 层: POST /generate, GET /, GET /days, POST /reset
- 集成 AI 生成 30 天个性化戒烟减量方案
- 支持重置计划功能
2026-03-13 14:58:42 +08:00
root
a46b51cd58
fix: 统一戒烟小程序默认头像为指定OSS地址
2026-03-10 22:50:06 +08:00
root
0cdfebd1dc
fix: 分享接口返回小程序路径去除前导斜杠
2026-03-10 20:36:22 +08:00
root
484aa96a6e
feat: add smoke share token and read-only share APIs
2026-03-10 18:53:01 +08:00
root
a4b466744c
feat(admin): add fa_smoke CRUD APIs with Chinese comments ( #45 )
2026-03-10 17:29:36 +08:00
root
2ddb2403e4
feat(admin): add watermark table list APIs ( #44 )
2026-03-10 17:02:53 +08:00
root
6f1f75d983
feat(admin): complete settings APIs and password update flow
2026-03-10 16:40:51 +08:00
root
59508efb05
feat: move marketing admin to /api/admin and remove built-in page
2026-03-10 01:14:30 +08:00
root
d8623fab8f
fix: resolve marketing static page path across working dirs
2026-03-10 00:55:52 +08:00
root
4ff97b2665
ci: switch prod deploy to server-side git pull and go build
2026-03-10 00:43:23 +08:00
root
be5a1bcdd1
ci: compress deploy artifact to speed up ssh publish
2026-03-10 00:34:20 +08:00
root
df4fc36819
ci: harden ssh upload step with timeout and legacy scp
2026-03-10 00:27:03 +08:00
root
8b3ca2fd62
ci: add non-docker production deployment workflow
2026-03-10 00:12:27 +08:00
root
386877da9a
feat: 新增admin用户与会员管理接口
2026-03-09 22:44:05 +08:00
root
27617cd373
refactor: expiry 模块按 handler/model/service 分层
2026-03-09 21:13:59 +08:00
root
f45940cbc5
refactor: admin 模块按 handler/model/service 分层
2026-03-09 21:13:49 +08:00
root
7591a443d9
feat: 完成后台Issue#9 小程序管理接口模块
2026-03-09 19:26:25 +08:00
root
bd1e644ef5
feat: 完成后台Issue#6 数据统计接口模块
2026-03-09 19:26:07 +08:00
root
54cf7ea37f
feat: 完成后台Issue#4 管理员认证接口模块
2026-03-09 19:25:44 +08:00
root
172a543a5e
docs: 完成 #3 戒烟小程序待办收敛与验收记录
2026-03-09 19:17:31 +08:00
root
9daf5e98ff
feat: 完成 #40 营销图后台七牛直传与页面上传能力
2026-03-09 19:17:25 +08:00
root
88d02ed6db
test: 完成 #39 营销图路由注册与鉴权接入验证
2026-03-09 19:17:10 +08:00
root
efff6eb7d4
feat: 完成 #38 营销图CRUD接口下载校验与测试
2026-03-09 19:17:01 +08:00
nepiedg
e14255cf64
feat(upload): 支持阿里云 OSS 直传凭证 + 营销图管理后台静态路由
...
- 新增 internal/common/oss: OSS PostPolicy/UploadHost,CDN 为 aliyuncs 时返回 OSS 凭证
- upload_handler: QINIU_CDN_DOMAIN 为 OSS 域名时返回 oss_access_key_id/policy/signature,upload_url 为 bucket 域名
- routes: 增加 /admin/marketing 静态页面路由
Made-with: Cursor
2026-03-06 11:25:23 +00:00
nepiedg
76fd425ca7
docs(marketing): 新增营销图模块文档
...
- docs/README.md: 文档目录补充营销图模块入口
- docs/marketing/README.md: 模块概述、代码结构、数据模型、路由表、依赖说明、管理后台
- docs/marketing/API.md: 完整 API 文档(小程序端+管理后台,含请求/响应示例)
Made-with: Cursor
2026-03-06 07:50:42 +00:00
nepiedg
ac49e1458c
feat(marketing): 新增营销图管理模块
...
- 新增 marketing 模块:model/repository/service/handler 四层架构
- 数据模型:marketing_categories、marketing_templates、marketing_user_downloads
- 小程序端接口:分类列表、模板列表/详情、下载记录、广告回调
- 管理后台接口:分类/模板 CRUD、下载统计(X-Admin-Token 鉴权)
- 路由注册:接入现有 AuthMiddleware,新增 AdminTokenMiddleware
- Web 管理后台:单页面 Vue3 + Element Plus(分类管理、模板管理、数据概览)
Closes #37 , #38 , #39 , #40
Made-with: Cursor
2026-03-06 07:36:05 +00:00
root
5f492929df
deploy(expiry): 完成 #36 生产部署执行与监控配置
2026-03-04 19:03:56 +08:00
root
cc775dff45
chore(deploy): 完成 #35 部署准备
2026-03-04 18:42:40 +08:00
root
3301acf6e6
perf(expiry): 完成 #34 性能优化与缓存
2026-03-04 18:40:45 +08:00
root
3668b10be3
test(expiry): 完成 #32 接口集成测试资产
2026-03-04 18:37:45 +08:00
root
6c303abd58
test(expiry): 完成 #31 后端单元测试与覆盖率提升
2026-03-04 18:35:32 +08:00
root
e1b5382004
docs(sql): 完成 #19 过期模块数据库脚本与校验
2026-03-04 18:29:48 +08:00
root
cc16b342d7
feat(expiry): 完成 #25 用户设置接口实现
2026-03-04 17:12:36 +08:00