finance
黄伟 2 years ago
parent c74396cb05
commit 07139c3ecf

@ -150,3 +150,18 @@ func (u *user) ServiceInfo(ctx context.Context, args ArgsUserServiceInfo) (reply
err = xClient.Call(ctx, "ServiceInfo", args, &reply) err = xClient.Call(ctx, "ServiceInfo", args, &reply)
return 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
}

Loading…
Cancel
Save