Skip to content

feat: 新增微信公众号内容阅读量统计及优化部分设计#57

Merged
ZhengZhenyu merged 4 commits intoopensourceways:mainfrom
ZhengZhenyu:main
Feb 21, 2026
Merged

feat: 新增微信公众号内容阅读量统计及优化部分设计#57
ZhengZhenyu merged 4 commits intoopensourceways:mainfrom
ZhengZhenyu:main

Conversation

@ZhengZhenyu
Copy link
Collaborator

@ZhengZhenyu ZhengZhenyu commented Feb 21, 2026

Co-authored-by: sunshuang1866 sunshuang1866@users.noreply.github.com

变更说明

关联 Issue:#

Checklist

  • 功能实现正确,无明显 Bug
  • 测试通过(新增/修改功能已补充测试,覆盖率 ≥ 80%)
  • 无敏感信息硬编码(密钥、密码、Token)
  • 数据库有变更时迁移文件已生成并测试
  • 必要的文档已同步更新

ZhengZhenyu and others added 2 commits February 21, 2026 23:03
实现微信文章每日阅读量快照采集、多维度聚合趋势分析和文章排名看板。

后端:
- 新增 wechat_article_stats(每日快照)和 wechat_stats_aggregates(预聚合)两张表,合并至 001_initial.py 迁移
- 新增 11 项互动指标(阅读量、点赞、在看、分享、评论、收藏、转发、新增粉丝等)
- 支持按天/周/月/季/半年/年 6 种维度聚合趋势折线图数据
- 提供 8 个 REST 端点(概览、趋势、排名、每日统计录入/批量录入/分类更新/聚合重建)
- 新增 31 条 API 测试,整体覆盖率 83.6%

前端:
- 新增 WechatStats.vue 页面(ECharts 折线图 + 分类汇总表 + 阅读排名表)
- 新增 wechatStats.ts API 客户端模块
- "发布管理"菜单项改为子菜单,添加"微信阅读统计"导航入口

Co-authored-by: sunshuang1866 <sunshuang1866@users.noreply.github.com>
与登录页保持一致:
- 背景改为 #f5f7fa + 蓝/绿径向光晕装饰
- 卡片改为白色 + border-radius 20px + 细边框阴影
- 添加 logo 图片(与登录页对齐)
- 去除 el-alert 警告,改为蓝色 info-banner
- 表单去除 label,统一用 placeholder + prefix-icon
- 输入框、按钮样式与登录页保持一致(圆角、hover/focus 过渡)
- 删除禁用色值 #303133、#e6a23c、紫色渐变背景
@opensourceways-bot
Copy link
Contributor

Linking Issue Notice

@ZhengZhenyu , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

@opensourceways-bot
Copy link
Contributor

CLA Signature Guide

@ZhengZhenyu , thanks for your pull request.

The following commit(s) are not associated with a signed Contributor License Agreement (CLA).

Commit Reason
cd2244b6 feat: 新增微信公众号文��... the email used in the commit is not linked to a signed CLA!
please verify that it matches the email you used when signing the CLA.

To sign CLA, click here.

To check if your email is configured correctly, refer to the FAQs.

Once you've signed the CLA or updating your email, please comment /check-cla to revalidate CLA status.

- wechat_stats 三个文件:Optional[X] → X | None(UP007)
- models/wechat_stats.py、schemas/wechat_stats.py:isort import 排序(I001)
@opensourceways-bot
Copy link
Contributor

CLA Signature Guide

@ZhengZhenyu , thanks for your pull request.

The following commit(s) are not associated with a signed Contributor License Agreement (CLA).

Commit Reason
cd2244b6 feat: 新增微信公众号文��... the email used in the commit is not linked to a signed CLA!
please verify that it matches the email you used when signing the CLA.

To sign CLA, click here.

To check if your email is configured correctly, refer to the FAQs.

Once you've signed the CLA or updating your email, please comment /check-cla to revalidate CLA status.

@opensourceways-bot
Copy link
Contributor

CLA Signature Guide

@ZhengZhenyu , thanks for your pull request.

The following commit(s) are not associated with a signed Contributor License Agreement (CLA).

Commit Reason
cd2244b6 feat: 新增微信公众号文��... the email used in the commit is not linked to a signed CLA!
please verify that it matches the email you used when signing the CLA.

To sign CLA, click here.

To check if your email is configured correctly, refer to the FAQs.

Once you've signed the CLA or updating your email, please comment /check-cla to revalidate CLA status.

@ZhengZhenyu ZhengZhenyu merged commit 9cc392e into opensourceways:main Feb 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants