add apis
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / aiserver (push) Successful in 0s
CI / analysis (push) Successful in 1s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 1s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 1s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Failing after 8s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s

This commit is contained in:
2026-10-31 10:31:43 +08:00
parent cc23c30c9e
commit 309d5278cb
22 changed files with 1783 additions and 53 deletions
+25
View File
@@ -0,0 +1,25 @@
package svc
import (
"context"
user "lone-services/rpc/user/pb"
"github.com/zeromicro/go-zero/core/logx"
)
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
}