From 22af038358b3923ef468e00928b4a6dac979161b Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 8 Jan 2026 13:13:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dict):=20=E4=BF=AE=E6=94=B9=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=9F=A5=E8=AF=A2=E6=96=B9=E6=B3=95=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 All 方法的 companyType 参数替换为 ArgsDictAll 结构体 - 更新客户端调用时传入的参数类型 - 保持方法返回值和错误处理逻辑不变 --- ik3cloud/dict.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ik3cloud/dict.go b/ik3cloud/dict.go index 904520d..bb051af 100644 --- a/ik3cloud/dict.go +++ b/ik3cloud/dict.go @@ -34,11 +34,11 @@ type FilterItem struct { } // All @TITLE 获取字典 -func (d *dict) All(ctx context.Context, companyType constant.Action) (reply []DictItem, err error) { +func (d *dict) All(ctx context.Context, args ArgsDictAll) (reply []DictItem, err error) { xClient, err := client.GetClient(d) if err != nil { return } - err = xClient.Call(ctx, "All", companyType, &reply) + err = xClient.Call(ctx, "All", args, &reply) return }