Commit Graph

48 Commits

Author SHA1 Message Date
c032608a57 Revert "refactor: 清理租户API旧模块代码"
This reverts commit 992930a821.
2026-02-17 12:12:01 +08:00
654b1ae3f7 feat: tenant门店管理首批接口落地
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 30s
2026-02-17 11:10:06 +08:00
992930a821 refactor: 清理租户API旧模块代码 2026-02-17 09:57:26 +08:00
ec5293d892 fix: identity 登录并发改为 xmin
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 8s
移除 identity_users 对 RowVersion 列的依赖,改用 PostgreSQL xmin 作为并发令牌,修复线上登录因缺失 RowVersion 列导致的 500 错误。
2026-02-06 12:11:52 +08:00
MSuMshk
5a26f82628 refactor: 将 Permission 和 MenuDefinition 改为系统级实体
- Permission 和 MenuDefinition 改为继承 AuditableEntityBase(移除 TenantId)
- 添加 PortalType 枚举区分平台端/租户端
- Repository 使用 IgnoreQueryFilters() 查询系统级数据
- 更新所有相关 Handler 和 DTO,移除 TenantId 引用
- 与 AdminApi 保持一致的设计

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:49:27 +08:00
MSuMshk
e88c41c11e feat: 实现动态租户解析与移除菜单回退逻辑
1. 新增 ITenantCodeResolver 接口和 DatabaseTenantCodeResolver 实现
2. 修改 TenantResolutionMiddleware 支持从数据库动态解析租户编码
3. ITenantRepository 新增 FindIdByCodeAsync 方法
4. 移除 EfMenuRepository 中危险的系统菜单回退逻辑
5. 调整服务注册顺序确保依赖正确注入

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 13:05:52 +08:00
root
cf697b3889 fix: 统一逐租户上下文执行 2026-01-30 01:04:51 +00:00
root
52fb4fde72 refactor: 清理平台表述并统一为系统 2026-01-29 13:49:03 +00:00
root
b3d611304b refactor: 移除身份跨租户忽略租户过滤 2026-01-29 13:48:31 +00:00
root
1ee9aa8435 refactor: 移除菜单平台根租户读取 2026-01-29 13:47:32 +00:00
root
86ef0d6033 feat: 新增租户管理端 TenantApi 并移除旧 API 2026-01-29 11:39:57 +00:00
a042c7ef82 Merge branch 'dev' of https://github.com/msumshk/TakeoutAPI into dev 2026-01-05 19:11:16 +08:00
398c716734 fix:修复注释错误 2026-01-04 21:22:26 +08:00
aa42a635e4 feat: 提交后端其余改动 2026-01-01 07:41:57 +08:00
bc09d9ca2e fix: 权限固定为全局 2025-12-27 16:47:38 +08:00
dd58cc2ed0 fix: 菜单固定为全局 2025-12-27 16:47:15 +08:00
9df54d620d fix: 修复用户角色替换的软删除冲突 2025-12-27 12:32:53 +08:00
2d09a629be feat: 身份操作日志改造为Outbox并修正日志库连接 2025-12-27 12:32:53 +08:00
b2a90cf8af feat: 用户管理后端与日志库迁移 2025-12-27 06:23:03 +08:00
2150ae8f8c fix: 重置密码忽略租户过滤 2025-12-15 15:27:32 +08:00
2249588e07 feat: 支持租户伪装登录与管理员重置链接 2025-12-15 14:43:50 +08:00
9192ef3021 fix: 用户头像URL支持长链接 2025-12-15 12:55:58 +08:00
715cbb3d36 docs: add xml comments and update ignore rules 2025-12-12 10:39:51 +08:00
c7df64f2e1 feat: add public tenant packages listing and sort order 2025-12-11 23:57:04 +08:00
cf9927c078 fix: de-dup role permission binding and use raw sql replace 2025-12-06 22:52:02 +08:00
33a3b349c4 fix: filter soft-deleted roles and soft delete on remove 2025-12-06 15:40:57 +08:00
7ed133509e fix: use raw sql delete+insert with execution strategy for role template permissions 2025-12-06 14:40:49 +08:00
ab4e407f9c fix: wrap identity permission bindings with execution strategy transactions 2025-12-06 14:35:06 +08:00
4120aec055 fix: wrap role/user permission replacements in transactions 2025-12-06 14:27:23 +08:00
3b68b62bb6 fix: wrap role template permission replace in transaction 2025-12-06 14:20:46 +08:00
f0f04e89a0 fix: avoid role template permission duplicate when replacing 2025-12-06 14:18:51 +08:00
37dc23f0c1 feat: add permission hierarchy tree 2025-12-06 11:53:14 +08:00
a1499fc1a1 feat: add admin menu management crud 2025-12-05 21:16:07 +08:00
1d7836a173 chore: 升级依赖并优化种子 2025-12-04 17:30:09 +08:00
37e7d721f3 docs: 完善参数注释与StyleCop配置 2025-12-04 12:45:26 +08:00
8e4c2b0e45 chore: add documentation comments and stylecop rules 2025-12-04 11:25:01 +08:00
6a84141799 feat: 角色模板改为数据库管理支持前端自定义 2025-12-03 20:38:26 +08:00
ea33e6fefe feat: 新增RBAC角色模板复制与初始化 2025-12-03 19:55:25 +08:00
b459c7edbe feat: 重构 RBAC1 角色权限模型 2025-12-02 16:21:46 +08:00
8fbd40ecf2 feat: 添加用户权限洞察查询与示例 2025-12-02 15:49:04 +08:00
5332c87d9d chore: 提交现有修改 2025-12-02 12:11:25 +08:00
148475fa43 feat: migrate snowflake ids and refresh migrations 2025-12-02 09:04:37 +08:00
贺爱泽
15fc000cfc feat: 补充数据库脚本和配置 2025-12-01 18:16:49 +08:00
贺爱泽
5ddad07658 feat: 扩展领域模型与配置 2025-12-01 13:26:05 +08:00
ae273e510a feat: finalize core modules and gateway 2025-11-23 18:53:12 +08:00
429d4fb747 chore: 提交当前变更 2025-11-23 12:47:29 +08:00
ccadacaa9d chore: 优化代码注释 2025-11-23 09:52:54 +08:00
1169e1f220 chore: 同步当前开发内容 2025-11-23 01:25:20 +08:00