From 5cd534571dd2907d933d41577a040896e3cfa10f Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 9 Dec 2025 13:16:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(erp):=20=E4=BF=AE=E6=94=B9=E5=BA=94?= =?UTF-8?q?=E4=BB=98=E8=B4=A6=E6=AC=BE=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 List 方法的 total 返回值类型从 int64 改为 error - 修复了方法签名与实际返回值不匹配的问题 --- erp/payable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp/payable.go b/erp/payable.go index 165700a..bf8bc67 100644 --- a/erp/payable.go +++ b/erp/payable.go @@ -44,7 +44,7 @@ type PayableItem struct { } // List @TITLE 列表 -func (p *payable) List(ctx context.Context, args ArgsPayableList) (reply ReplyPayableList, total int64) { +func (p *payable) List(ctx context.Context, args ArgsPayableList) (reply ReplyPayableList, err error) { xClient, err := client.GetClient(p) if err != nil { return