From 07139c3ecf5fe3b139ed89f98dd11f9e2712ce7e Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 28 Sep 2022 16:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/user.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/customer/user.go b/customer/user.go index c319df4..432b23e 100644 --- a/customer/user.go +++ b/customer/user.go @@ -150,3 +150,18 @@ func (u *user) ServiceInfo(ctx context.Context, args ArgsUserServiceInfo) (reply err = xClient.Call(ctx, "ServiceInfo", args, &reply) return } + +type UserInfoItem struct { + Id uint `json:"id"` + Name string `json:"name"` +} + +// FindByIds @Title 根据用户Ids查询用户信息 +func (u *user) FindByIds(ctx context.Context, userIds []uint) (reply []UserInfoItem, err error) { + xClient, err := client.GetClient(u) + if err != nil { + return + } + err = xClient.Call(ctx, "FindByIds", userIds, &reply) + return +}