|
|
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 |
|
|
|
2778a4ebdf
|
feat: 套餐发布状态与可见/可购开关
|
2025-12-15 17:29:41 +08:00 |
|
|
|
2339775fcb
|
feat: 租户审核领单与强制接管
|
2025-12-15 10:40:50 +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 |
|
|
|
c7df64f2e1
|
feat: add public tenant packages listing and sort order
|
2025-12-11 23:57:04 +08:00 |
|
|
|
37e7d721f3
|
docs: 完善参数注释与StyleCop配置
|
2025-12-04 12:45:26 +08:00 |
|
|
|
17d143a351
|
docs: refine tenant repository comments
|
2025-12-03 23:18:17 +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 |
|
|
|
19137f3cf7
|
feat: 套餐管理与配额校验能力
|
2025-12-03 20:17:55 +08:00 |
|
|
|
a536a554c2
|
feat: 实现租户管理及套餐流程
|
2025-12-03 16:37:50 +08:00 |
|