Commit Graph

102 Commits

Author SHA1 Message Date
67c6c3cccb feat: 添加内容删除前检查,确保内容未被购买 2026-01-05 13:00:12 +08:00
c231847f81 feat: 添加内容置顶功能,更新相关数据模型和前端视图 2026-01-05 12:54:26 +08:00
a5cc9b13d6 feat: 添加主定调过滤选项,优化内容列表查询功能 2026-01-05 09:19:39 +08:00
637ff7110d feat: 更新内容视图和编辑视图,支持动态曲种选项和标签显示 2026-01-05 09:07:13 +08:00
113f9c8d3c feat: 添加内容创建表单状态字段,优化内容保存和发布逻辑 2026-01-04 21:45:42 +08:00
4b32e64d35 feat: 更新内容管理功能,支持价格为可选字段,添加状态管理及媒体计数显示 2026-01-04 19:56:53 +08:00
df08e148ce feat: 添加媒体资产文件名支持,优化上传和内容获取逻辑 2026-01-04 19:09:34 +08:00
5496c776df feat: 优化编辑器 UI 和文件名显示,支持全屏编辑模式 2026-01-04 18:21:19 +08:00
2438d363f5 feat: 实现多部分上传功能,支持初始化、上传部分、完成和中止上传,添加媒体资产删除功能 2026-01-04 15:20:06 +08:00
221b068a84 feat: add file deduplication and hash checking for uploads
- Implemented SHA-256 hashing for uploaded files to enable deduplication.
- Added CheckHash method to verify if a file with the same hash already exists.
- Updated Upload method to reuse existing media assets if a duplicate is found.
- Introduced a new hash column in the media_assets table to store file hashes.
- Enhanced the upload process to include progress tracking and hash calculation.
- Modified frontend to check for existing files before uploading and to show upload progress.
- Added vuedraggable for drag-and-drop functionality in the content editing view.
2025-12-31 19:16:02 +08:00
f560b95ec0 feat: 更新内容创建和更新表单,支持封面ID和媒体ID字段 2025-12-31 17:57:30 +08:00
5ed6262e02 fix: upload image issues 2025-12-31 17:42:51 +08:00
5a364a995a feat: 更新上传接口,使用新的上传表单结构并添加价格字段 2025-12-31 16:41:19 +08:00
b82a69689d feat: 添加音乐键位字段,更新相关数据结构和接口 2025-12-31 16:01:20 +08:00
984770c6a1 feat(editor): update 2025-12-31 14:50:18 +08:00
20e1a2fa19 feat: 添加获取全局选项接口,支持动态状态和曲种选择 2025-12-31 12:31:52 +08:00
c133169c7b feat: 更新订单和用户视图,增强订单信息展示,支持充值类型订单 2025-12-31 12:19:01 +08:00
95bc5bdb5d feat: 更新钱包充值逻辑,自动处理充值订单支付,模拟支付成功返回 2025-12-31 12:00:38 +08:00
798be672bc refactor: 优化交易类型判断逻辑,使用switch语句增强可读性 2025-12-30 23:31:41 +08:00
cc5ace114a refactor: 优化代码格式,增强可读性 2025-12-30 23:30:00 +08:00
317db2daad feat: 更新服务方法,显式接受用户ID参数,简化上下文调用 2025-12-30 23:23:56 +08:00
54de243fa1 feat: Refactor user context handling and service methods
- Updated middleware to fetch user and tenant models by ID and set them in context.
- Refactored common service methods to accept userID as a parameter instead of extracting from context.
- Modified content service methods to include userID as a parameter for better clarity and performance.
- Adjusted coupon, creator, notification, order, tenant, user, and wallet services to utilize userID directly.
- Enhanced context key constants for improved readability and maintainability.
2025-12-30 22:49:26 +08:00
7a8c5c4427 feat(user): 修改OTP登录验证码为"1234"以增强安全性
feat(main): 添加种子命令以初始化数据库数据
feat(consts): 添加创作者角色常量
feat(profile): 更新用户资料页面以支持从API获取用户信息
feat(library): 实现用户库页面以获取已购内容并显示状态
feat(contents): 更新内容编辑页面以支持文件上传和自动保存
feat(topnavbar): 优化用户头像显示逻辑以支持动态加载
2025-12-30 21:55:48 +08:00
2c633dac0f feat: 添加用户优惠券列表接口及相关数据结构 2025-12-30 17:53:27 +08:00
dbfb08ed37 feat: add coupon support to orders and create user_coupons model
- Added CouponID field to Order model to track used coupons.
- Updated order query generation to include CouponID.
- Introduced UserCoupon model to manage user coupon associations.
- Implemented query methods for UserCoupon to facilitate CRUD operations.
- Updated query context and default query setup to include UserCoupon.
2025-12-30 17:28:21 +08:00
b969218208 feat(storage): 实现本地存储功能,包括文件上传和下载接口 2025-12-30 17:14:03 +08:00
ee1acae3ed feat: 实现平台抽成、提现审批、异步任务集成及安全审计功能 2025-12-30 14:54:19 +08:00
5cf2295f91 feat: Implement notification service and integrate with user interactions
- Added notification service to handle sending and listing notifications.
- Integrated notification sending on user follow and order payment events.
- Updated user service to include fetching followed tenants.
- Enhanced content service to manage access control for content assets.
- Implemented logic for listing content topics based on genre.
- Updated creator service to manage content updates and pricing.
- Improved order service to include detailed order information and notifications.
- Added tests for notification CRUD operations and order details.
2025-12-30 09:57:12 +08:00
9ef9642965 feat: 重构内容服务,优化数据预加载和用户互动功能;增加租户关注功能及相关测试用例 2025-12-30 09:17:13 +08:00
33e1921e17 Refactor super module: Move HTTP handlers to new super/v1 package
- Deleted old super.go file and moved all related HTTP handlers to new package structure under backend/app/http/super/v1.
- Updated service imports in super.go and super_test.go to reflect new DTO paths.
- Created new auth, contents, orders, tenants, and users handlers with corresponding routes and methods.
- Added new DTO definitions for authentication and content management in the super/v1/dto directory.
- Implemented new migration for content_access table and created model for it.
2025-12-29 17:17:07 +08:00
9d598e7f9b feat: 重构内容和订单列表接口,使用过滤器结构体简化参数传递;更新相关服务和测试用例 2025-12-29 15:41:48 +08:00
fba77afec1 feat: 重构内容列表接口,使用过滤器结构体简化参数传递;更新相关服务和测试用例 2025-12-29 15:04:55 +08:00
8c4bc55f45 feat: update app errors 2025-12-29 14:54:05 +08:00
8fa3d18a9c Refactor order and tenant ledger models to use consts for Currency and Type fields; add new UserStatus values; implement comprehensive test cases for content, creator, order, super, and wallet services. 2025-12-29 14:21:20 +08:00
d648a1e45b feat: 更新用户、订单、媒体资产和租户模型,添加新的字段类型和结构体 2025-12-29 12:01:22 +08:00
b78f1e1c84 feat(user): implement OTP login, user creation, and profile management
- Added SendOTP method for simulating OTP sending.
- Implemented LoginWithOTP method for user login/registration via OTP, including user creation if not found.
- Added Me method to retrieve current user information.
- Implemented Update method for updating user profile details.
- Added RealName method for real-name verification.
- Implemented GetNotifications method to fetch user notifications.
- Created user_test.go for comprehensive unit tests covering login, profile retrieval, updates, real-name verification, and notifications.
- Updated database models to use appropriate consts for fields like gender, status, and roles.
2025-12-29 10:55:13 +08:00
d482905157 feat: 更新内容相关接口,使用统一的分页响应结构 2025-12-29 10:14:47 +08:00
ad52371028 feat: implement new structure 2025-12-29 09:30:49 +08:00
503b15aab7 reset backend 2025-12-27 19:49:11 +08:00
6542c71ec0 feat: tenant content publish 2025-12-25 14:29:16 +08:00
a66c0d9b90 chore: enforce gen transaction rule 2025-12-25 14:08:09 +08:00
1a357177fd refactor: move tenant apply db to service 2025-12-25 11:27:14 +08:00
03117b827b feat: portal tenant apply flow 2025-12-25 11:12:11 +08:00
0c7d4ef0ea feat: portal auth login and password reset 2025-12-25 09:58:34 +08:00
87f569cc6a feat: add tenant admin invite management, ledger overview, order details, and order management features
- Implemented Invite management with creation, searching, and disabling functionalities.
- Added Ledger overview for financial transactions with filtering options.
- Developed Order Detail view for individual order insights and refund capabilities.
- Created Orders management page with search, reset, and pagination features.
- Enhanced user experience with toast notifications for actions and error handling.
2025-12-24 19:41:44 +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
63107ca23f feat: 添加订单提供者,优化路由注册,增强用户角色管理 2025-12-24 10:45:36 +08:00
1e1132718c feat: 添加订单详情和退款功能,更新用户角色管理,增强超级管理员鉴权 2025-12-24 09:48:31 +08:00