feat: 新增微信公众号内容阅读量统计及优化部分设计#57
Conversation
实现微信文章每日阅读量快照采集、多维度聚合趋势分析和文章排名看板。 后端: - 新增 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、紫色渐变背景
Linking Issue Notice@ZhengZhenyu , the pull request must be linked to at least one issue. |
CLA Signature Guide@ZhengZhenyu , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (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 |
- wechat_stats 三个文件:Optional[X] → X | None(UP007) - models/wechat_stats.py、schemas/wechat_stats.py:isort import 排序(I001)
CLA Signature Guide@ZhengZhenyu , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (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 |
CLA Signature Guide@ZhengZhenyu , thanks for your pull request. The following commit(s) are not associated with a signed Contributor License Agreement (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 |
Co-authored-by: sunshuang1866 sunshuang1866@users.noreply.github.com
变更说明
关联 Issue:#
Checklist