|
|
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 |
|
|
|
15a35d8e40
|
feat(billing): 新增逾期账单自动标记定时任务
1. 新增Hangfire定时任务BillingOverdueProcessJob
2. 修复逾期账单查询条件过宽问题
3. 默认每10分钟执行一次逾期检查
|
2025-12-18 12:14:01 +08:00 |
|
|
|
4b53862ded
|
✨ feat: 完成账单管理模块后端功能开发及API优化
核心功能:
- 账单CRUD操作(创建、查询、详情、更新状态、删除)
- 支付记录管理(创建支付、审核支付)
- 批量操作支持(批量更新账单状态)
- 统计分析功能(账单统计、逾期账单查询)
- 导出功能(Excel/PDF/CSV)
API端点 (16个):
- GET /api/admin/v1/billings - 账单列表(分页、筛选、排序)
- POST /api/admin/v1/billings - 创建账单
- GET /api/admin/v1/billings/{id} - 账单详情
- DELETE /api/admin/v1/billings/{id} - 删除账单
- PUT /api/admin/v1/billings/{id}/status - 更新状态
- POST /api/admin/v1/billings/batch/status - 批量更新
- GET /api/admin/v1/billings/{id}/payments - 支付记录
- POST /api/admin/v1/billings/{id}/payments - 创建支付
- PUT /api/admin/v1/billings/payments/{paymentId}/verify - 审核支付
- GET /api/admin/v1/billings/statistics - 统计数据
- GET /api/admin/v1/billings/overdue - 逾期账单
- POST /api/admin/v1/billings/export - 导出账单
架构优化:
- 采用CQRS模式分离读写(MediatR + Dapper + EF Core)
- 完整的领域模型设计(TenantBillingStatement, TenantPayment等)
- FluentValidation请求验证
- 状态机管理账单和支付状态流转
API设计优化 (三项改进):
1. 导出API响应Content-Type改为application/octet-stream
2. 支付审核API添加Approved和Notes可选参数,支持通过/拒绝
3. 移除TenantBillings API中重复的TenantId参数
数据库变更:
- 新增账单相关表及关系
- 支持Snowflake ID主键
- 完整的审计字段支持
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-18 11:24:44 +08:00 |
|
|
|
98f49ea7ad
|
feat: 实现订阅自动化定时任务系统
新增定时任务 (Scheduler Module):
- SubscriptionAutoRenewalJob: 自动续费账单生成
- SubscriptionRenewalReminderJob: 续费提醒发送 (7/3/1天)
- SubscriptionExpiryCheckJob: 到期检查与宽限期处理
新增 Command/Handler:
- ProcessAutoRenewalCommand: 处理自动续费逻辑
- ProcessRenewalRemindersCommand: 处理续费提醒逻辑
- ProcessSubscriptionExpiryCommand: 处理订阅到期逻辑
配置项 (SubscriptionAutomationOptions):
- AutoRenewalDaysBeforeExpiry: 到期前N天生成续费账单
- ReminderDaysBeforeExpiry: 提醒天数数组
- GracePeriodDays: 宽限期天数
- 各任务执行小时配置
Repository 增强:
- ISubscriptionRepository: 新增自动化查询方法
- ITenantBillingRepository: 新增账单创建方法
- ITenantNotificationRepository: 新增通知创建方法
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-17 21:06:01 +08:00 |
|
|
|
ab59e2e3e2
|
feat: 新增配额包/支付相关实体与迁移
App:新增 operation_logs/quota_packages/tenant_payments/tenant_quota_package_purchases 表
Identity:修正 Avatar 字段类型(varchar(256)->text),保持现有数据不变
|
2025-12-17 17:27:45 +08:00 |
|
|
|
9c28790f5e
|
feat: 套餐增加推荐标识与标签
|
2025-12-15 22:32:02 +08:00 |
|
|
|
e39a42b74c
|
fix: 修复套餐草稿默认值哨兵问题
|
2025-12-15 21:09:28 +08:00 |
|
|
|
fd377624d8
|
fix: 修复套餐新增草稿默认值与开关落库
|
2025-12-15 21:06:23 +08:00 |
|
|
|
2778a4ebdf
|
feat: 套餐发布状态与可见/可购开关
|
2025-12-15 17:29:41 +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 |
|
|
|
fca8bd989c
|
fix: 租户LogoUrl支持长链接
|
2025-12-15 12:53:38 +08:00 |
|
|
|
2339775fcb
|
feat: 租户审核领单与强制接管
|
2025-12-15 10:40:50 +08:00 |
|
|
|
f54d4cf405
|
fix: 平台端查询租户订阅与套餐不再受租户过滤影响
|
2025-12-15 10:00:31 +08:00 |
|
|
|
f6e7fa2f4a
|
fix: 平台租户未解析时不应用租户过滤
|
2025-12-15 09:45:08 +08:00 |
|
|
|
c5a3243bd8
|
feat: tenants 列表支持名称/联系人/电话/认证状态过滤
|
2025-12-14 16:23:32 +08:00 |
|
|
|
8b18d0cb96
|
feat: admin simple 登录支持 账号@手机号
|
2025-12-12 22:06:37 +08:00 |
|
|
|
624a7bc04d
|
fix: tenants 联系电话唯一索引
|
2025-12-12 22:06:24 +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 |
|
|
|
3a38ade302
|
feat: add role template and tenant role apis
|
2025-12-05 20:55:56 +08:00 |
|
|
|
1d7836a173
|
chore: 升级依赖并优化种子
|
2025-12-04 17:30:09 +08:00 |
|
|
|
670f19831e
|
feat: add identity role template migrations
|
2025-12-04 15:11:41 +08:00 |
|
|
|
29a46dfc17
|
Merge branch 'chore/comment-fix' into dev
|
2025-12-04 14:43:02 +08:00 |
|
|
|
37e7d721f3
|
docs: 完善参数注释与StyleCop配置
|
2025-12-04 12:45:26 +08:00 |
|
|
|
7d6b7d8760
|
docs: 标记自提档期完成
|
2025-12-04 11:51:09 +08:00 |
|
|
|
7e6125c687
|
feat: 完善库存锁定幂等与批次扣减策略
|
2025-12-04 11:31:26 +08:00 |
|
|
|
8e4c2b0e45
|
chore: add documentation comments and stylecop rules
|
2025-12-04 11:25:01 +08:00 |
|
|
|
b8d93337f2
|
feat: 菜品菜单查询与子资源替换完善
|
2025-12-04 10:42:58 +08:00 |
|
|
|
de5f13ec83
|
feat: 商品上架/下架与全量详情支持
|
2025-12-04 10:03:42 +08:00 |
|
|
|
9220e0ca36
|
feat: Mini 桌码扫码上下文接口
|
2025-12-04 09:37:05 +08:00 |
|
|
|
19422df0f1
|
feat: 门店员工与排班管理上线
|
2025-12-04 09:32:03 +08:00 |
|
|
|
1a5209a8b1
|
feat: 桌码管理支持区域、批量生成与二维码导出
|
2025-12-04 09:10:00 +08:00 |
|
|
|
9051a024ea
|
feat: 完成门店子资源管理与文档同步
|
2025-12-04 08:38:31 +08:00 |
|
|
|
bf88f0e041
|
docs: add xml comments for tenant modules
|
2025-12-03 22:56:35 +08:00 |
|
|
|
a3dc5f54e5
|
chore: 优化公告已读批量与用户维度
|
2025-12-03 21:13:52 +08:00 |
|
|
|
9fe7d9606d
|
feat: 租户账单公告通知接口
|
2025-12-03 21:08:28 +08:00 |
|
|
|
6a84141799
|
feat: 角色模板改为数据库管理支持前端自定义
|
2025-12-03 20:38:26 +08:00 |
|
|
|
19137f3cf7
|
feat: 套餐管理与配额校验能力
|
2025-12-03 20:17:55 +08:00 |
|
|
|
ea33e6fefe
|
feat: 新增RBAC角色模板复制与初始化
|
2025-12-03 19:55:25 +08:00 |
|