Commit Graph

288 Commits

Author SHA1 Message Date
root
1ee9aa8435 refactor: 移除菜单平台根租户读取 2026-01-29 13:47:32 +00:00
root
f42213951f refactor: 移除字典强制覆盖能力 2026-01-29 13:47:18 +00:00
root
bc1c4cc41b refactor: 禁止 TenantId=0 并改为系统租户 2026-01-29 13:16:15 +00:00
root
77836e270f refactor: 移除平台公告与跨租户目标 2026-01-29 13:15:53 +00:00
root
0d9402d204 refactor: 移除平台管理员残留定义 2026-01-29 12:25:54 +00:00
root
c7307c1942 refactor: 移除租户审核领取模型 2026-01-29 12:15:19 +00:00
root
3297ff26ab refactor: 移除平台侧能力并收紧租户隔离 2026-01-29 12:06:52 +00:00
root
86ef0d6033 feat: 新增租户管理端 TenantApi 并移除旧 API 2026-01-29 11:39:57 +00:00
root
0ae2589b51 refactor: 移除管理端与网关项目 2026-01-29 03:33:06 +00:00
root
06981838a6 fix: 修复 DeliveryZoneService 可空警告 2026-01-29 03:07:25 +00:00
root
c5e2501e1a refactor: 抽离 Docs/BuildingBlocks 子模块 2026-01-29 03:07:01 +00:00
725f89ae24 feat: Add tiered packaging fee support for stores
Introduces tiered packaging fee configuration for stores by adding OrderPackagingFeeMode and PackagingFeeTiers fields to StoreFee. Updates DTOs, validators, handlers, and mapping logic to support both fixed and tiered packaging fee modes. Adds StoreFeeTierHelper for tier normalization and serialization, and includes a database migration to persist the new fields.
2026-01-26 09:26:49 +08:00
187534ecca fix: 允许平台账号跨租户更新门店 2026-01-21 17:21:30 +08:00
41ce8f2ccb refactor: drop tencent map signature endpoint 2026-01-21 14:18:16 +08:00
054beb4a69 fix: adjust tencent map signature encoding 2026-01-21 13:19:14 +08:00
60f12b3e58 feat: add tencent map signature endpoint 2026-01-21 12:35:39 +08:00
36abd83e83 chore: update store delivery zone handlers 2026-01-21 11:27:13 +08:00
8bde1a6440 fix: 门店时段与临时调整跨租户处理 2026-01-20 20:38:05 +08:00
32f5bbbd43 feat(store): 扩展临时时段配置 2026-01-20 18:41:34 +08:00
3385674490 fix: 门店资质日期字段改为date 2026-01-20 13:09:06 +08:00
30e54e2bea fix: 修复门店租户写入与跨租户查看 2026-01-19 20:43:27 +08:00
root
abd5752ad1 fix: 兼容swagger旧路径并修复测试构建 2026-01-06 06:46:19 +00:00
a042c7ef82 Merge branch 'dev' of https://github.com/msumshk/TakeoutAPI into dev 2026-01-05 19:11:16 +08:00
6eea61264b refactor: 重命名商户门店DTO 2026-01-05 10:43:04 +08:00
398c716734 fix:修复注释错误 2026-01-04 21:22:26 +08:00
aa42a635e4 feat: 提交后端其余改动 2026-01-01 07:41:57 +08:00
fc55003d3d 完成门店管理后端接口与任务 2026-01-01 07:26:14 +08:00
dc9f6136d6 feat: 实现字典管理后端 2025-12-30 19:56:24 +08:00
a427b0f22a feat:放开商户导出权限 2025-12-29 22:17:45 +08:00
b9dc49b7a9 feat:修复商户审核校验 2025-12-29 22:10:23 +08:00
7cb5e9a805 feat:补齐商户版本号 2025-12-29 21:55:05 +08:00
febef6caaf feat:修复商户审核日志 2025-12-29 21:16:09 +08:00
dd91c1010a feat:商户管理 2025-12-29 16:40:27 +08:00
57f4c2d394 fix: 公告模块第一次修复 2025-12-27 18:22:30 +08:00
bc09d9ca2e fix: 权限固定为全局 2025-12-27 16:47:38 +08:00
dd58cc2ed0 fix: 菜单固定为全局 2025-12-27 16:47:15 +08:00
433fcc04a2 fix: 用户列表返回头像并调整上传地址 2025-12-27 12:32:55 +08:00
3d6e2f02b4 fix: 升级依赖并适配消息模块 2025-12-27 12:32:54 +08:00
b75f4bca54 fix: 移除AutoMapper依赖 2025-12-27 12:32:54 +08:00
d37bc191f6 fix: 调整RabbitMQ客户端版本并兼容同步调用 2025-12-27 12:32:54 +08:00
9df54d620d fix: 修复用户角色替换的软删除冲突 2025-12-27 12:32:53 +08:00
2d09a629be feat: 身份操作日志改造为Outbox并修正日志库连接 2025-12-27 12:32:53 +08:00
04444c6554 fix: 修复公告过时警告并补齐用户权限 2025-12-27 12:32:52 +08:00
b2a90cf8af feat: 用户管理后端与日志库迁移 2025-12-27 06:23:03 +08:00
ca632a7c09 refactor: 日志库拆分与清理用户审计 2025-12-26 17:24:10 +08:00
755b61a044 fix: 修复公告模块核心问题并完善功能
主要修复内容:
1. 修复 RowVersion 并发控制
   - 配置 EF Core RowVersion 映射为 bytea 类型
   - 添加 PostgreSQL 触发器自动生成 RowVersion
   - 在更新/发布/撤销操作中添加 RowVersion 校验
   - 移除 Application 层对 EF Core 的直接依赖

2. 修复 API 路由和校验问题
   - 添加平台公告列表路由的版本化别名
   - 租户公告接口添加 X-Tenant-Id 必填校验,返回 400
   - 生效时间校验返回 422 而非 500
   - 修复 FluentValidation 异常命名冲突

3. 实现关键词搜索功能
   - 在查询参数中添加 keyword 字段
   - 使用 PostgreSQL ILIKE 实现大小写不敏感搜索
   - 支持标题和内容字段的模糊匹配

4. 数据库迁移
   - 新增 RowVersion 触发器迁移文件
   - 回填现有公告记录的 RowVersion
2025-12-26 09:16:07 +08:00
857f776447 feat: 实现完整的多租户公告管理系统
核心功能:
- 公告状态机(草稿/已发布/已撤销)支持发布、撤销和重新发布
- 发布者范围区分平台级和租户级公告
- 目标受众定向推送(全部租户/指定角色/指定用户)
- 平台管理、租户管理和应用端查询API
- 已读/未读管理和未读统计

技术实现:
- CQRS+DDD架构,清晰的领域边界和事件驱动
- 查询性能优化:数据库端排序和限制,估算策略减少内存占用
- 并发控制:修复RowVersion配置(IsRowVersion→IsConcurrencyToken)
- 完整的FluentValidation验证器和输入保护

测试验证:
- 36个测试全部通过(27单元+9集成)
- 性能测试达标(1000条数据<5秒)
- 代码质量评级A(优秀)

文档:
- 完整的ADR、API文档和迁移指南
- 交付报告和技术债务记录
2025-12-20 19:57:09 +08:00
00eb357e6e fix: 平台订阅管理支持跨租户查询 2025-12-18 23:58:24 +08:00
30f44b6009 修复:Admin租户配额查询返回空数据(忽略全局租户过滤) 2025-12-18 20:56:50 +08:00
907c9938ae feat(admin-api): 实现 TD-001 和 TD-002 后端接口
TD-001 - PUT /api/admin/v1/tenants/{tenantId}:
- 新增 UpdateTenantCommand + UpdateTenantCommandHandler
- Controller 新增 Update 端点(tenant:update 权限)
- 校验:租户存在、name 非空、name/contactPhone 冲突返回 409
- 仓储扩展:ITenantRepository.ExistsByNameAsync

TD-002 - GET /api/admin/v1/tenants/{tenantId}/quota-usage-history:
- 新增 CQRS Query/Handler/DTO/Validator
- 支持分页(Page>=1, PageSize 1~100)
- 支持时间范围和 QuotaType 过滤
- 新增 tenant_quota_usage_histories 表(含迁移)
- 写入点:CheckTenantQuotaCommandHandler + PurchaseQuotaPackageCommandHandler

构建验证:dotnet build 通过
数据库迁移:已应用 20251218121053_AddTenantQuotaUsageHistories
2025-12-18 20:19:33 +08:00