This commit is contained in:
2026-10-21 16:06:37 +08:00
parent e7c178a2ae
commit 8693dc65f4
17 changed files with 1113 additions and 162 deletions
@@ -48,3 +48,20 @@ func GetStore(id int64, name string) dao.StoreInfo {
return storeInfo
}
func GetStores(ids []int64, name string) []*store.InfoResponse {
cli, err := GetRpcClient(name)
if err != nil {
logx.Error(err)
return nil
}
client := store.NewStoreClient(cli.Conn())
items, err := client.GetInfoByIds(context.Background(), &store.IdsRequest{Ids: ids})
if err != nil {
logx.Errorf("get store err: %v", err)
return nil
}
return items.Items
}