Commit Graph

14 Commits

Author SHA1 Message Date
a80c9b759b feat: 移除“租户管理员为用户充值 / 每租户一套余额”能力:余额统一为全局用户余额 2025-12-23 10:59:59 +08:00
5dc0f89ac0 feat: add operator and business reference fields to tenant ledgers
- Added `operator_user_id`, `biz_ref_type`, and `biz_ref_id` fields to the TenantLedger model for enhanced auditing and traceability.
- Updated the tenant ledgers query generation to include new fields.
- Introduced new API endpoint for retrieving tenant ledger records with filtering options based on the new fields.
- Enhanced Swagger documentation to reflect the new endpoint and its parameters.
- Created DTOs for admin ledger filtering and item representation.
- Implemented the admin ledger retrieval logic in the tenant service.
- Added database migration scripts to introduce new fields and indexes for efficient querying.
2025-12-22 21:35:10 +08:00
2cc823d3a8 feat: Introduce MediaAssetVariant for better asset management
- Added MediaAssetVariant enum with values 'main' and 'preview'.
- Updated media asset service logic to utilize MediaAssetVariant for variant handling.
- Refactored database models and queries to include variant and source_asset_id fields.
- Enhanced validation for asset variants in upload and processing functions.
- Updated Swagger documentation to reflect new variant structure and descriptions.
- Implemented necessary database migrations to support the new variant constraints.
2025-12-22 19:27:31 +08:00
ad82de3939 feat: 添加媒体资产变体和来源ID字段,支持预览产品与主资产的关联 2025-12-22 17:56:08 +08:00
549339be74 tenant: admin orders sort whitelist 2025-12-18 23:36:57 +08:00
ec4506fd2d tenant: add invites and join requests 2025-12-18 18:27:23 +08:00
de574bbd9d tenant: add member management APIs 2025-12-18 17:29:17 +08:00
5029234e47 feat: 增加订单筛选功能,添加按金额区间筛选的数据库索引 2025-12-18 16:50:24 +08:00
1da84f2af3 feat: add TenantLedger model and query generation
- Introduced TenantLedger model with fields for managing tenant transactions, including ID, TenantID, UserID, OrderID, transaction Type, Amount, and balance details.
- Implemented CRUD operations for TenantLedger with methods for Create, Update, Delete, and Reload.
- Generated query methods for TenantLedger to facilitate database interactions, including filtering, pagination, and aggregation functions.
- Established relationships with Order model for foreign key references.
2025-12-18 13:12:26 +08:00
674c562831 feat: follow llm.txt 2025-12-18 10:27:40 +08:00
971c02fa07 feat: spec stage 1 2025-12-17 22:28:47 +08:00
0531a72ae6 feat: update 2025-12-16 15:43:28 +08:00
d058b7ffda feat add tenant users 2025-12-16 11:20:40 +08:00
28ab17324d init 2025-12-15 17:55:32 +08:00