feat: 添加 GetUsersByIds 批量用户查询接口
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.9.2
|
||||
// goctl 1.10.1
|
||||
// Source: users.proto
|
||||
|
||||
package usercenter
|
||||
@@ -36,6 +36,8 @@ type (
|
||||
GetUserPreferencesByIdResp = pb.GetUserPreferencesByIdResp
|
||||
GetUsersByIdReq = pb.GetUsersByIdReq
|
||||
GetUsersByIdResp = pb.GetUsersByIdResp
|
||||
GetUsersByIdsReq = pb.GetUsersByIdsReq
|
||||
GetUsersByIdsResp = pb.GetUsersByIdsResp
|
||||
LoginReq = pb.LoginReq
|
||||
LoginResp = pb.LoginResp
|
||||
LogoutReq = pb.LogoutReq
|
||||
@@ -70,6 +72,7 @@ type (
|
||||
UpdateUsers(ctx context.Context, in *UpdateUsersReq, opts ...grpc.CallOption) (*UpdateUsersResp, error)
|
||||
DelUsers(ctx context.Context, in *DelUsersReq, opts ...grpc.CallOption) (*DelUsersResp, error)
|
||||
GetUsersById(ctx context.Context, in *GetUsersByIdReq, opts ...grpc.CallOption) (*GetUsersByIdResp, error)
|
||||
GetUsersByIds(ctx context.Context, in *GetUsersByIdsReq, opts ...grpc.CallOption) (*GetUsersByIdsResp, error)
|
||||
SearchUsers(ctx context.Context, in *SearchUsersReq, opts ...grpc.CallOption) (*SearchUsersResp, error)
|
||||
GetUserByUsername(ctx context.Context, in *GetUserByUsernameReq, opts ...grpc.CallOption) (*GetUserByUsernameResp, error)
|
||||
Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error)
|
||||
@@ -125,6 +128,11 @@ func (m *defaultUsercenter) GetUsersById(ctx context.Context, in *GetUsersByIdRe
|
||||
return client.GetUsersById(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultUsercenter) GetUsersByIds(ctx context.Context, in *GetUsersByIdsReq, opts ...grpc.CallOption) (*GetUsersByIdsResp, error) {
|
||||
client := pb.NewUsercenterClient(m.cli.Conn())
|
||||
return client.GetUsersByIds(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultUsercenter) SearchUsers(ctx context.Context, in *SearchUsersReq, opts ...grpc.CallOption) (*SearchUsersResp, error) {
|
||||
client := pb.NewUsercenterClient(m.cli.Conn())
|
||||
return client.SearchUsers(ctx, in, opts...)
|
||||
|
||||
Reference in New Issue
Block a user