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 +}