From 6963f4bb7de7bc6b21bb8b8c28e326cc3ed7d5b5 Mon Sep 17 00:00:00 2001 From: AntChen <1151355296@qq.com> Date: Fri, 6 Mar 2026 16:42:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E4=BF=AE=E6=AD=A3ListFilesAsync?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3pageSize=E5=8F=82=E6=95=B0=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在ListFilesAsync方法中为pageSize参数添加AliasAs特性,名称为page_size - 确保HTTP请求查询参数与后端API保持一致 --- RAGFlowSharp/Api/IFileApi.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RAGFlowSharp/Api/IFileApi.cs b/RAGFlowSharp/Api/IFileApi.cs index 777a0da..90f0351 100644 --- a/RAGFlowSharp/Api/IFileApi.cs +++ b/RAGFlowSharp/Api/IFileApi.cs @@ -3,6 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; using RAGFlowSharp.Dtos.File; +using WebApiClientCore; using WebApiClientCore.Attributes; namespace RAGFlowSharp.Api @@ -66,7 +67,7 @@ [PathQuery] string documentId Task ListFilesAsync( [PathQuery] string datasetId, [PathQuery] int? page = null, - [PathQuery] int? pageSize = null, + [AliasAs("page_size")][PathQuery] int? pageSize = null, [PathQuery] string? orderBy = null, [PathQuery] bool? desc = null, [PathQuery] string? keywords = null,