Commit Graph

108 Commits

Author SHA1 Message Date
1d0b38bbb7 init tenant_admin 2025-12-24 17:08:09 +08:00
d60c1e9312 feat: add content management feature for superadmin
- Implemented API endpoint for fetching content list with filtering, sorting, and pagination.
- Added DTOs for content items and tenant information.
- Created frontend components for content management, including search and data table functionalities.
- Updated routing to include content management page.
- Enhanced the superadmin menu to navigate to the new content management section.
- Included necessary styles and scripts for the new content management interface.
2025-12-24 16:24:50 +08:00
568f5cda43 feat: add tenant content management features for superadmin
- Implemented API endpoints for listing tenant contents and updating content status.
- Added Swagger documentation for new endpoints:
  - GET /super/v1/tenants/{tenantID}/contents
  - PATCH /super/v1/tenants/{tenantID}/contents/{contentID}/status
- Created DTOs for content item and status update form.
- Enhanced frontend to support content management in the tenant detail page.
- Added search and filter functionalities for tenant contents.
- Implemented unpublish functionality with confirmation dialog.
- Updated service layer to handle new content management logic.
2025-12-24 16:10:07 +08:00
8fa321dbf6 feat: add TenantDetail and UserDetail views with comprehensive functionality
- Implemented TenantDetail.vue to display tenant information, manage tenant status, and handle tenant renewals.
- Added user management features in UserDetail.vue, including user status updates and role management.
- Integrated data loading for tenant users and orders in TenantDetail.vue.
- Included search and pagination functionalities for owned and joined tenants in UserDetail.vue.
- Enhanced user experience with toast notifications for success and error messages.
2025-12-24 15:10:49 +08:00
40776b78e2 feat: 更新路由参数格式,增强路由一致性和可读性 2025-12-24 11:02:05 +08:00
469d691a75 update 2025-12-24 10:56:30 +08:00
63107ca23f feat: 添加订单提供者,优化路由注册,增强用户角色管理 2025-12-24 10:45:36 +08:00
1e1132718c feat: 添加订单详情和退款功能,更新用户角色管理,增强超级管理员鉴权 2025-12-24 09:48:31 +08:00
fcbc6bd394 feat: 添加订单管理功能,支持跨租户分页查询,优化订单列表展示及查询条件 2025-12-24 09:30:12 +08:00
3e8a02d549 feat: 添加用户租户管理功能,优化用户列表和租户信息展示,增强查询过滤条件 2025-12-24 00:02:44 +08:00
26e4279f1e feat: 更新租户和订单相关功能,添加租户成员列表接口,优化数据处理和前端展示 2025-12-23 23:38:05 +08:00
bcb8c822f1 feat: 添加租户创建功能,支持设置管理员及有效期,新增订单统计接口 2025-12-23 23:03:49 +08:00
d09a9374ee feat: 更新超级管理员登录逻辑,添加路由守卫和用户统计功能 2025-12-23 16:28:21 +08:00
3db41f4b0c feat: 添加跳过 JWT 认证和成员验证的逻辑,优化中间件处理 2025-12-23 14:58:08 +08:00
780a7b1ed1 feat: 添加按 biz_ref_type 和 order_id 过滤的管理员账本页面测试用例 2025-12-23 13:25:58 +08:00
39b541accd feat: 支持从失败状态重新发起退款,添加相关逻辑和测试用例 2025-12-23 13:07:12 +08:00
d70a33e4f9 feat: 实现媒体播放功能,支持本地文件和重定向,添加相关测试用例 2025-12-23 12:57:11 +08:00
1dba706022 feat: 添加媒体资源处理的异步任务及相关逻辑 2025-12-23 12:04:30 +08:00
7c2b937352 feat: 删除 DemoCronJob 和 DemoJob 相关代码 2025-12-23 11:34:14 +08:00
a80c9b759b feat: 移除“租户管理员为用户充值 / 每租户一套余额”能力:余额统一为全局用户余额 2025-12-23 10:59:59 +08:00
dd7bcdfb98 feat: 添加订单退款功能的测试用例及相关逻辑 2025-12-23 09:26:22 +08:00
ead821ac2c feat: 添加订单退款处理的异步任务及相关逻辑 2025-12-22 23:03:18 +08:00
56256a6fb8 update llm.txt 2025-12-22 22:58:26 +08:00
201c55f055 feat: 添加事件驱动规则和生成结构说明 2025-12-22 22:35:04 +08:00
a869540d9c update llm.txt 2025-12-22 21:54:39 +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
3cb2a6f586 update llm.txt 2025-12-22 21:30:17 +08:00
683965ae39 feat: Refactor order snapshot handling and introduce structured snapshot types
- Added new structured snapshot types for orders and order items to improve data integrity and clarity.
- Updated the Order and OrderItem models to use the new JSONType for snapshots.
- Refactored tests to accommodate the new snapshot structure, ensuring compatibility with legacy data.
- Enhanced the OrdersSnapshot struct to support multiple snapshot types and maintain backward compatibility.
- Introduced new fields for order items and orders to capture detailed snapshot information for auditing and historical display.
2025-12-22 21:11:33 +08:00
618fe116ba update llm.txt 2025-12-22 21:11:13 +08:00
83097c8ff4 update llm.txt 2025-12-22 20:59:24 +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
d04e2ee693 update llm.txt 2025-12-22 18:56:44 +08:00
0d63ecc9c2 feat: 添加GORM Gen库文档,详细描述PostgreSQL扩展版本的功能和特性 2025-12-22 18:43:51 +08:00
ff3bd61929 feat: 添加媒体资产测试,验证上传初始化时变体和来源ID的规则 2025-12-22 18:25:42 +08:00
ad82de3939 feat: 添加媒体资产变体和来源ID字段,支持预览产品与主资产的关联 2025-12-22 17:56:08 +08:00
335a546aab feat: 添加媒体播放功能,支持基于短时效token的播放入口及相关API接口 2025-12-22 17:44:25 +08:00
70bba28492 feat: 添加媒体资源软删除API接口及相关文档 2025-12-22 17:25:03 +08:00
bcee0e06fe feat: 添加媒体资源管理相关API接口及数据结构,包括列表和详情查询 2025-12-22 17:20:13 +08:00
76f639b3f3 feat: 添加媒体资产上传初始化和完成相关API接口及数据结构 2025-12-22 17:02:53 +08:00
6ab65817d8 update llm 2025-12-22 17:02:32 +08:00
7eb7b14557 feat: 添加公开内容相关API接口及测试用例 2025-12-22 16:33:35 +08:00
39454458f1 feat: Implement public access for tenant content
- Add TenantOptionalAuth middleware to allow access to public content without requiring authentication.
- Introduce ListPublicPublished and PublicDetail methods in the content service to retrieve publicly accessible content.
- Create tenant_public HTTP routes for listing and showing public content, including preview and main asset retrieval.
- Enhance content tests to cover scenarios for public content access and permissions.
- Update specifications to reflect the new public content access features and rules.
2025-12-22 16:29:44 +08:00
266de2f75e update llm.txt 2025-12-22 16:08:01 +08:00
17d51d5ed2 tenant: admin batch topup 2025-12-19 13:55:20 +08:00
86a1a0a2cc tenant: admin order export csv 2025-12-19 09:11:28 +08:00
549339be74 tenant: admin orders sort whitelist 2025-12-18 23:36:57 +08:00
71bd15024e tenant: extend admin order filters 2025-12-18 23:22:37 +08:00
ec4506fd2d tenant: add invites and join requests 2025-12-18 18:27:23 +08:00
462bde351d tenant: move admin member queries into service 2025-12-18 18:03:32 +08:00
eedb940799 update llm.txt 2025-12-18 17:39:14 +08:00