Commit Graph

73 Commits

Author SHA1 Message Date
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
de574bbd9d tenant: add member management APIs 2025-12-18 17:29:17 +08:00
5029234e47 feat: 增加订单筛选功能,添加按金额区间筛选的数据库索引 2025-12-18 16:50:24 +08:00
e268176af5 feat: 增加订单过滤功能,支持按内容ID、支付时间范围和支付金额范围筛选 2025-12-18 16:46:40 +08:00
3249e405ac feat: add balance and ledger endpoints for tenant
- Implemented MyBalance and MyLedgerPage methods in the ledger service to retrieve current user balance and transaction history for a specified tenant.
- Added corresponding test cases for MyBalance and MyLedgerPage methods in the ledger test suite.
- Created DTOs for balance response and ledger items to structure the response data.
- Updated Swagger documentation to include new endpoints for retrieving tenant balance and ledgers.
- Added HTTP tests for the new endpoints to ensure proper functionality.
2025-12-18 16:24:37 +08:00
435e541dbe Refactor user tests and add content and order tests
- Updated user_test.go to remove FocusConvey and clean up commented-out code.
- Introduced content_test.go with comprehensive tests for content creation, updating, pricing, asset attachment, and access checks.
- Added order_test.go to implement tests for order management, including admin top-ups, order details, refunds, and content purchases with various scenarios.
2025-12-18 16:06:11 +08:00
e57608b8c4 feat: 更新服务层文档,增加中文注释以提升可读性 2025-12-18 15:48:44 +08:00
6bd38e2049 update llm.txt 2025-12-18 15:14:48 +08:00
7b95202a8b add ledger test 2025-12-18 15:14:19 +08:00
3c3cc81348 update llm.txt 2025-12-18 15:12:30 +08:00
22ac78fce1 update llm.txt 2025-12-18 15:08:28 +08:00
5fe669fef6 feat: 添加服务层单元测试指南,涵盖测试设计、结构和约定 2025-12-18 14:32:51 +08:00
163851cb5a feat: 优化购买内容的事务处理逻辑,支持幂等性和回滚机制 2025-12-18 14:15:05 +08:00
a232e73358 feat: 添加租户成员充值功能及相关文档 2025-12-18 14:09:08 +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
f93caefcb2 feat: add http client 2025-12-18 11:28:55 +08:00
d1d67f5c9a updates 2025-12-18 11:00:37 +08:00
368726f60c update llm.txt 2025-12-18 11:00:03 +08:00
8fa05444df update consts 2025-12-18 10:53:10 +08:00
6e051f2077 update llm.txt 2025-12-18 10:53:05 +08:00
674c562831 feat: follow llm.txt 2025-12-18 10:27:40 +08:00
819fa7f218 update llm 2025-12-18 10:22:48 +08:00
650ada9cc6 pending 2025-12-18 09:54:29 +08:00
1eef314e98 update llm.txt 2025-12-18 09:53:50 +08:00
7205492d38 update rule 2025-12-18 09:51:52 +08:00
f5a2450b0c update llm.txt 2025-12-18 09:44:35 +08:00
bfce71b56d feat: done 2025-12-18 00:21:49 +08:00
7261c0fcc3 update http 2025-12-17 23:59:06 +08:00
3895f4926b update llm 2025-12-17 23:57:50 +08:00
3098e83ac5 add rule 2025-12-17 22:52:52 +08:00
0a8709d515 add llm limits 2025-12-17 22:51:16 +08:00
971c02fa07 feat: spec stage 1 2025-12-17 22:28:47 +08:00
e28830cfaf update llm 2025-12-17 21:29:44 +08:00
9b7093da26 feat: add llm.txt 2025-12-17 17:50:14 +08:00
70c9094001 feat: 重构认证控制器,统一类型命名为auth 2025-12-17 16:22:10 +08:00
fe9601baf4 feat: add status filter 2025-12-17 16:11:30 +08:00