Commit Graph

74 Commits

Author SHA1 Message Date
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
root 6bee50c170 feat(expiry): 完成 #24 物品 Handler 接口实现 2026-03-04 17:11:15 +08:00
root e982cdc773 feat(expiry): 完成 #23 物品 Service 层实现 2026-03-04 17:10:04 +08:00
root e116ec4929 feat(expiry): 完成 #22 物品 Repository 层实现 2026-03-04 17:08:34 +08:00
root 83fbbe7189 feat(expiry): 完成 #21 物品与设置模型实现 2026-03-04 17:07:30 +08:00
root f092019c61 feat(expiry): 完成 #20 模块目录与健康路由 2026-03-04 17:06:26 +08:00
hello-dd-code fe9f64f51d docs: add expiry docs and sql script 2026-03-04 16:31:30 +08:00
root ff16ea09d2 修复resisted记录被默认值覆盖为1的问题 2026-03-04 01:03:04 +08:00
root bdd34785ef 修复戒烟首页与统计中抽烟/忍住口径混淆 2026-03-04 00:59:12 +08:00
hello-dd-code 4509ebea60 纳入docker-compose配置并忽略本地编译产物 2026-02-28 16:57:00 +08:00
hello-dd-code 3499139060 完善七牛回调验签与重试策略文档 2026-02-28 16:46:03 +08:00
hello-dd-code d64267accc 新增七牛回调接口并接入验签校验 2026-02-28 16:45:19 +08:00
hello-dd-code 37868e6654 增加七牛回调配置与签名验签能力 2026-02-28 16:43:54 +08:00
hello-dd-code 016c47ba75 新增MySQL备份恢复脚本并完成演练 2026-02-28 16:39:53 +08:00
hello-dd-code 5666dc61a0 落地结构化日志与基础监控告警 2026-02-28 16:37:37 +08:00
hello-dd-code 78f488fbbb 新增生产HTTPS与证书续期告警方案 2026-02-28 16:34:36 +08:00
hello-dd-code c7974e7f40 修复smoke.sql可重入并补迁移回滚验证 2026-02-28 16:32:50 +08:00
hello-dd-code 48f6e9dcad 补充兑换码开通会员集成测试场景 2026-02-28 16:30:34 +08:00
hello-dd-code 01dd0ccbbe 统一会员门禁逻辑并补权限分支测试 2026-02-28 16:27:48 +08:00
hello-dd-code 28690e2477 增强AI个性化画像分层并补回归测试 2026-02-28 16:24:11 +08:00
hello-dd-code c735b791cb 补充AI下次时间接口异常入参与验证记录 2026-02-28 16:24:04 +08:00
hello-dd-code ec9517e248 修复AI时间节点缓存过期与刷新策略 2026-02-28 16:24:00 +08:00
nepiedg 1b8ff310eb Add media proxy feature for resource downloading
- Introduced a new API endpoint `GET /api/v1/video/proxy` to facilitate media resource downloads, allowing users to bypass domain restrictions imposed by WeChat.
- Updated configuration to include proxy settings such as `SHORT_VIDEO_PROXY_ENABLED`, `SHORT_VIDEO_PROXY_ALLOWED_DOMAINS`, `SHORT_VIDEO_PROXY_MAX_SIZE_MB`, and `SHORT_VIDEO_PROXY_TIMEOUT_SECONDS`.
- Enhanced the `ShortVideoConfig` struct to accommodate new proxy-related fields.
- Improved error handling for proxy requests, including checks for allowed domains and file size limits.
- Updated documentation to reflect the new proxy functionality and its configuration options, ensuring clarity for users and developers.
2026-02-06 11:28:02 +00:00
nepiedg 9200600b1c Enhance smoking tracking API with new features and improvements
- Added a new API endpoint `GET /api/v1/smoke/home` to consolidate core modules for the home dashboard, reducing the need for multiple requests.
- Updated the `smoke` routes to include the new home endpoint and improved user profile management with the addition of a `quit_date` field.
- Enhanced the algorithm for calculating daily targets and next smoke suggestions, ensuring accurate future time handling and user-specific recommendations.
- Improved API documentation to reflect new endpoints, response formats, and detailed field descriptions for better clarity and usability.
- Refactored user authentication handling in various handlers to streamline the process and ensure consistent error responses.
2026-01-29 17:16:35 +00:00
nepiedg 3154365ab2 Add motivation quote feature to smoking tracking API
- Introduced a new database model `SmokeMotivationQuote` for storing motivational quotes.
- Added a new API endpoint `GET /api/v1/smoke/motivation` to retrieve motivation quotes for users.
- Updated the main.go file to include the new model in the auto-migration process.
- Enhanced smoke_routes.go to register the new motivation route with the smoke handler.
2026-01-25 09:53:18 +00:00