Mplan
|
e75833ee4b
|
重构表结构:合并 profiles→users,展平 API 响应,新增计数器字段
- models: 删除 Profile 模型,字段合并到 User;User 新增云朵/公开/收藏计数器;Cloud 新增 favorite_count
- schemas/serializers: 展平 UserOut/AuthOut/MeOut/AdminUserOut,移除嵌套 profile
- deps: user.profile.role→user.role,移除 selectinload profile
- auth/register: 注册时直接设置 user 字段,不再创建 Profile
- clouds: 创建/删除云朵时同步 user.cloud_count 计数器,状态变化时同步 public_cloud_count
- favorites: 点赞/取消时同步 cloud.favorite_count 计数器
- admin: 审批/隐藏/批量删时同步 public_cloud_count 计数器
- profiles/stats: 用计数器替代实时 COUNT 查询
- alembic: 新增 migration 合并 profiles 到 users,初始化 counters
|
2026-07-28 23:48:57 +08:00 |
|
Mplan
|
753c75d28b
|
新增 /profiles/me、/me/stats、/me/clouds 快捷路由,放开 stats 本人查看权限
|
2026-07-27 01:25:14 +08:00 |
|
Mplan
|
0776e91735
|
新增管理员创建用户接口 POST /admin/users,创建后邮箱自动确认
|
2026-07-26 02:20:03 +08:00 |
|
Mplan
|
8149505f1b
|
新增头像接口:POST /profiles/me/avatar 上传、DELETE /profiles/me/avatar 删除
|
2026-07-26 02:14:22 +08:00 |
|
Mplan
|
49df3f067a
|
新增点赞收藏功能:cloud_favorites 模型、查询/设置点赞状态及收藏列表接口
|
2026-07-26 02:10:16 +08:00 |
|
Mplan
|
53548d2788
|
新增管理员接口 GET /profiles/{user_id}/stats,返回用户全部/公开上传数和收藏数
|
2026-07-26 01:37:15 +08:00 |
|
Mplan
|
9c7ff9c489
|
移除冗余的 test_api.py,其所有覆盖点已被模块化测试替代
|
2026-07-26 01:24:52 +08:00 |
|
Mplan
|
12d15878da
|
统一测试辅助函数到 conftest.py,消除代码重复
|
2026-07-26 01:23:12 +08:00 |
|
Mplan
|
6b1f0d5f5f
|
补充测试覆盖:认证、云图、管理后台、资料、收藏、云类型模块共 78 个测试用例
|
2026-07-26 01:16:17 +08:00 |
|
Mplan
|
77bf076ad0
|
first commit
|
2026-07-18 20:32:51 +08:00 |
|