From a0817081a84362bbcc6bb40e7f2618d5ea7572f3 Mon Sep 17 00:00:00 2001 From: OpenClaw Agent Date: Sun, 15 Mar 2026 14:25:09 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=A0=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E7=9A=84=20/api/v1/portfolio/{id}/transactions=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 保留 query parameter 方式: /api/v1/portfolio/transactions?portfolioId=xxx --- .../Controllers/PortfolioController.cs | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/AssetManager.API/Controllers/PortfolioController.cs b/AssetManager.API/Controllers/PortfolioController.cs index 5cb7c31..7cce11e 100755 --- a/AssetManager.API/Controllers/PortfolioController.cs +++ b/AssetManager.API/Controllers/PortfolioController.cs @@ -300,38 +300,6 @@ public class PortfolioController : ControllerBase } } - /// - /// 获取交易记录 - /// - [HttpGet("{id}/transactions")] - public async Task>> GetTransactions( - string id, - [FromQuery] int limit = 20, - [FromQuery] int offset = 0) - { - var userId = GetCurrentUserId(); - - var request = new GetTransactionsRequest - { - PortfolioId = id, - Limit = limit, - Offset = offset - }; - - var transactions = await _portfolioFacade.GetTransactionsAsync(id, request, userId); - - return Ok(new ApiResponse - { - code = Models.StatusCodes.Success, - data = new GetTransactionsResponse - { - Items = transactions, - Total = transactions.Count - }, - message = "success" - }); - } - /// /// 获取策略信号 ///