refactor(dict): 修改字典查询方法参数结构

- 将 All 方法的 companyType 参数替换为 ArgsDictAll 结构体
- 更新客户端调用时传入的参数类型
- 保持方法返回值和错误处理逻辑不变
This commit is contained in:
2026-01-08 13:13:59 +08:00
parent 93524fca2f
commit 22af038358

View File

@@ -34,11 +34,11 @@ type FilterItem struct {
} }
// All @TITLE 获取字典 // 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) xClient, err := client.GetClient(d)
if err != nil { if err != nil {
return return
} }
err = xClient.Call(ctx, "All", companyType, &reply) err = xClient.Call(ctx, "All", args, &reply)
return return
} }