admin
This commit is contained in:
@@ -65,3 +65,20 @@ func GetStores(ids []int64, name string) []*store.InfoResponse {
|
||||
|
||||
return items.Items
|
||||
}
|
||||
|
||||
func GetUsers(ids []int64, name string) []*user.UserBriefItem {
|
||||
cli, err := GetRpcClient(name)
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
return nil
|
||||
}
|
||||
|
||||
client := user.NewUserClient(cli.Conn())
|
||||
items, err := client.InternalUsersByIds(context.Background(), &user.InternalUsersByIdsReq{Ids: ids})
|
||||
if err != nil {
|
||||
logx.Errorf("get store err: %v", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
return items.Items
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user