1 Star 0 Fork 0

xlizy/rpc-interface

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
UserCenterService_triple.pb.go 30.88 KB
一键复制 编辑 原始数据 按行查看 历史
xlizy 提交于 2024-04-03 13:55 . 完善
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.5
// - protoc v4.25.3
// source: UserCenterService.proto
package rpcApi
import (
context "context"
protocol "dubbo.apache.org/dubbo-go/v3/protocol"
dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3"
invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation"
grpc_go "github.com/dubbogo/grpc-go"
codes "github.com/dubbogo/grpc-go/codes"
metadata "github.com/dubbogo/grpc-go/metadata"
status "github.com/dubbogo/grpc-go/status"
common "github.com/dubbogo/triple/pkg/common"
constant "github.com/dubbogo/triple/pkg/common/constant"
triple "github.com/dubbogo/triple/pkg/triple"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc_go.SupportPackageIsVersion7
// UserCenterServiceClient is the client API for UserCenterService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type UserCenterServiceClient interface {
GetUserBasicByTmpToken(ctx context.Context, in *GetUserBasicByTmpTokenReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicByUserName(ctx context.Context, in *GetUserBasicByUserNameReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicByMobile(ctx context.Context, in *GetUserBasicByMobileReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicByMobileRegister(ctx context.Context, in *GetUserBasicByMobileRegisterReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicByMail(ctx context.Context, in *GetUserBasicByMailReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicByDingtalkCode(ctx context.Context, in *GetUserBasicByDingtalkCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicByQqCode(ctx context.Context, in *GetUserBasicByQqCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicByWeChatCode(ctx context.Context, in *GetUserBasicByWeChatCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetUserBasicBySinaWeiboCode(ctx context.Context, in *GetUserBasicBySinaWeiboCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
BindingMobile(ctx context.Context, in *BindingMobileReq, opts ...grpc_go.CallOption) (*BindingMobileRsp, common.ErrorWithAttachment)
ChangeThirdPartyAccountWithLogin(ctx context.Context, in *ChangeThirdPartyAccountWithLoginReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment)
GetMinimalUserInfoByUserId(ctx context.Context, in *GetMinimalUserInfoByUserIdReq, opts ...grpc_go.CallOption) (*MinimalUserInfoRsp, common.ErrorWithAttachment)
GetMobileInfoByUserId(ctx context.Context, in *GetMobileInfoByUserIdReq, opts ...grpc_go.CallOption) (*MobileInfoRsp, common.ErrorWithAttachment)
}
type userCenterServiceClient struct {
cc *triple.TripleConn
}
type UserCenterServiceClientImpl struct {
GetUserBasicByTmpToken func(ctx context.Context, in *GetUserBasicByTmpTokenReq) (*UserBasicInfoRsp, error)
GetUserBasicByUserName func(ctx context.Context, in *GetUserBasicByUserNameReq) (*UserBasicInfoRsp, error)
GetUserBasicByMobile func(ctx context.Context, in *GetUserBasicByMobileReq) (*UserBasicInfoRsp, error)
GetUserBasicByMobileRegister func(ctx context.Context, in *GetUserBasicByMobileRegisterReq) (*UserBasicInfoRsp, error)
GetUserBasicByMail func(ctx context.Context, in *GetUserBasicByMailReq) (*UserBasicInfoRsp, error)
GetUserBasicByDingtalkCode func(ctx context.Context, in *GetUserBasicByDingtalkCodeReq) (*UserBasicInfoRsp, error)
GetUserBasicByQqCode func(ctx context.Context, in *GetUserBasicByQqCodeReq) (*UserBasicInfoRsp, error)
GetUserBasicByWeChatCode func(ctx context.Context, in *GetUserBasicByWeChatCodeReq) (*UserBasicInfoRsp, error)
GetUserBasicBySinaWeiboCode func(ctx context.Context, in *GetUserBasicBySinaWeiboCodeReq) (*UserBasicInfoRsp, error)
BindingMobile func(ctx context.Context, in *BindingMobileReq) (*BindingMobileRsp, error)
ChangeThirdPartyAccountWithLogin func(ctx context.Context, in *ChangeThirdPartyAccountWithLoginReq) (*UserBasicInfoRsp, error)
GetMinimalUserInfoByUserId func(ctx context.Context, in *GetMinimalUserInfoByUserIdReq) (*MinimalUserInfoRsp, error)
GetMobileInfoByUserId func(ctx context.Context, in *GetMobileInfoByUserIdReq) (*MobileInfoRsp, error)
}
func (c *UserCenterServiceClientImpl) GetDubboStub(cc *triple.TripleConn) UserCenterServiceClient {
return NewUserCenterServiceClient(cc)
}
func (c *UserCenterServiceClientImpl) XXX_InterfaceName() string {
return "UserCenterService"
}
func NewUserCenterServiceClient(cc *triple.TripleConn) UserCenterServiceClient {
return &userCenterServiceClient{cc}
}
func (c *userCenterServiceClient) GetUserBasicByTmpToken(ctx context.Context, in *GetUserBasicByTmpTokenReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByTmpToken", in, out)
}
func (c *userCenterServiceClient) GetUserBasicByUserName(ctx context.Context, in *GetUserBasicByUserNameReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByUserName", in, out)
}
func (c *userCenterServiceClient) GetUserBasicByMobile(ctx context.Context, in *GetUserBasicByMobileReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByMobile", in, out)
}
func (c *userCenterServiceClient) GetUserBasicByMobileRegister(ctx context.Context, in *GetUserBasicByMobileRegisterReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByMobileRegister", in, out)
}
func (c *userCenterServiceClient) GetUserBasicByMail(ctx context.Context, in *GetUserBasicByMailReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByMail", in, out)
}
func (c *userCenterServiceClient) GetUserBasicByDingtalkCode(ctx context.Context, in *GetUserBasicByDingtalkCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByDingtalkCode", in, out)
}
func (c *userCenterServiceClient) GetUserBasicByQqCode(ctx context.Context, in *GetUserBasicByQqCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByQqCode", in, out)
}
func (c *userCenterServiceClient) GetUserBasicByWeChatCode(ctx context.Context, in *GetUserBasicByWeChatCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicByWeChatCode", in, out)
}
func (c *userCenterServiceClient) GetUserBasicBySinaWeiboCode(ctx context.Context, in *GetUserBasicBySinaWeiboCodeReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserBasicBySinaWeiboCode", in, out)
}
func (c *userCenterServiceClient) BindingMobile(ctx context.Context, in *BindingMobileReq, opts ...grpc_go.CallOption) (*BindingMobileRsp, common.ErrorWithAttachment) {
out := new(BindingMobileRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BindingMobile", in, out)
}
func (c *userCenterServiceClient) ChangeThirdPartyAccountWithLogin(ctx context.Context, in *ChangeThirdPartyAccountWithLoginReq, opts ...grpc_go.CallOption) (*UserBasicInfoRsp, common.ErrorWithAttachment) {
out := new(UserBasicInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ChangeThirdPartyAccountWithLogin", in, out)
}
func (c *userCenterServiceClient) GetMinimalUserInfoByUserId(ctx context.Context, in *GetMinimalUserInfoByUserIdReq, opts ...grpc_go.CallOption) (*MinimalUserInfoRsp, common.ErrorWithAttachment) {
out := new(MinimalUserInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetMinimalUserInfoByUserId", in, out)
}
func (c *userCenterServiceClient) GetMobileInfoByUserId(ctx context.Context, in *GetMobileInfoByUserIdReq, opts ...grpc_go.CallOption) (*MobileInfoRsp, common.ErrorWithAttachment) {
out := new(MobileInfoRsp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetMobileInfoByUserId", in, out)
}
// UserCenterServiceServer is the server API for UserCenterService service.
// All implementations must embed UnimplementedUserCenterServiceServer
// for forward compatibility
type UserCenterServiceServer interface {
GetUserBasicByTmpToken(context.Context, *GetUserBasicByTmpTokenReq) (*UserBasicInfoRsp, error)
GetUserBasicByUserName(context.Context, *GetUserBasicByUserNameReq) (*UserBasicInfoRsp, error)
GetUserBasicByMobile(context.Context, *GetUserBasicByMobileReq) (*UserBasicInfoRsp, error)
GetUserBasicByMobileRegister(context.Context, *GetUserBasicByMobileRegisterReq) (*UserBasicInfoRsp, error)
GetUserBasicByMail(context.Context, *GetUserBasicByMailReq) (*UserBasicInfoRsp, error)
GetUserBasicByDingtalkCode(context.Context, *GetUserBasicByDingtalkCodeReq) (*UserBasicInfoRsp, error)
GetUserBasicByQqCode(context.Context, *GetUserBasicByQqCodeReq) (*UserBasicInfoRsp, error)
GetUserBasicByWeChatCode(context.Context, *GetUserBasicByWeChatCodeReq) (*UserBasicInfoRsp, error)
GetUserBasicBySinaWeiboCode(context.Context, *GetUserBasicBySinaWeiboCodeReq) (*UserBasicInfoRsp, error)
BindingMobile(context.Context, *BindingMobileReq) (*BindingMobileRsp, error)
ChangeThirdPartyAccountWithLogin(context.Context, *ChangeThirdPartyAccountWithLoginReq) (*UserBasicInfoRsp, error)
GetMinimalUserInfoByUserId(context.Context, *GetMinimalUserInfoByUserIdReq) (*MinimalUserInfoRsp, error)
GetMobileInfoByUserId(context.Context, *GetMobileInfoByUserIdReq) (*MobileInfoRsp, error)
mustEmbedUnimplementedUserCenterServiceServer()
}
// UnimplementedUserCenterServiceServer must be embedded to have forward compatible implementations.
type UnimplementedUserCenterServiceServer struct {
proxyImpl protocol.Invoker
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByTmpToken(context.Context, *GetUserBasicByTmpTokenReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByTmpToken not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByUserName(context.Context, *GetUserBasicByUserNameReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByUserName not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByMobile(context.Context, *GetUserBasicByMobileReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByMobile not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByMobileRegister(context.Context, *GetUserBasicByMobileRegisterReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByMobileRegister not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByMail(context.Context, *GetUserBasicByMailReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByMail not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByDingtalkCode(context.Context, *GetUserBasicByDingtalkCodeReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByDingtalkCode not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByQqCode(context.Context, *GetUserBasicByQqCodeReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByQqCode not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicByWeChatCode(context.Context, *GetUserBasicByWeChatCodeReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicByWeChatCode not implemented")
}
func (UnimplementedUserCenterServiceServer) GetUserBasicBySinaWeiboCode(context.Context, *GetUserBasicBySinaWeiboCodeReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUserBasicBySinaWeiboCode not implemented")
}
func (UnimplementedUserCenterServiceServer) BindingMobile(context.Context, *BindingMobileReq) (*BindingMobileRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method BindingMobile not implemented")
}
func (UnimplementedUserCenterServiceServer) ChangeThirdPartyAccountWithLogin(context.Context, *ChangeThirdPartyAccountWithLoginReq) (*UserBasicInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ChangeThirdPartyAccountWithLogin not implemented")
}
func (UnimplementedUserCenterServiceServer) GetMinimalUserInfoByUserId(context.Context, *GetMinimalUserInfoByUserIdReq) (*MinimalUserInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMinimalUserInfoByUserId not implemented")
}
func (UnimplementedUserCenterServiceServer) GetMobileInfoByUserId(context.Context, *GetMobileInfoByUserIdReq) (*MobileInfoRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMobileInfoByUserId not implemented")
}
func (s *UnimplementedUserCenterServiceServer) XXX_SetProxyImpl(impl protocol.Invoker) {
s.proxyImpl = impl
}
func (s *UnimplementedUserCenterServiceServer) XXX_GetProxyImpl() protocol.Invoker {
return s.proxyImpl
}
func (s *UnimplementedUserCenterServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc {
return &UserCenterService_ServiceDesc
}
func (s *UnimplementedUserCenterServiceServer) XXX_InterfaceName() string {
return "UserCenterService"
}
func (UnimplementedUserCenterServiceServer) mustEmbedUnimplementedUserCenterServiceServer() {}
// UnsafeUserCenterServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to UserCenterServiceServer will
// result in compilation errors.
type UnsafeUserCenterServiceServer interface {
mustEmbedUnimplementedUserCenterServiceServer()
}
func RegisterUserCenterServiceServer(s grpc_go.ServiceRegistrar, srv UserCenterServiceServer) {
s.RegisterService(&UserCenterService_ServiceDesc, srv)
}
func _UserCenterService_GetUserBasicByTmpToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByTmpTokenReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByTmpToken", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicByUserName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByUserNameReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByUserName", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicByMobile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByMobileReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByMobile", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicByMobileRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByMobileRegisterReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByMobileRegister", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicByMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByMailReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByMail", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicByDingtalkCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByDingtalkCodeReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByDingtalkCode", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicByQqCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByQqCodeReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByQqCode", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicByWeChatCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicByWeChatCodeReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicByWeChatCode", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetUserBasicBySinaWeiboCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetUserBasicBySinaWeiboCodeReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetUserBasicBySinaWeiboCode", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_BindingMobile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(BindingMobileReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("BindingMobile", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_ChangeThirdPartyAccountWithLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(ChangeThirdPartyAccountWithLoginReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("ChangeThirdPartyAccountWithLogin", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetMinimalUserInfoByUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMinimalUserInfoByUserIdReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetMinimalUserInfoByUserId", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
func _UserCenterService_GetMobileInfoByUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMobileInfoByUserIdReq)
if err := dec(in); err != nil {
return nil, err
}
base := srv.(dubbo3.Dubbo3GrpcService)
args := []interface{}{}
args = append(args, in)
md, _ := metadata.FromIncomingContext(ctx)
invAttachment := make(map[string]interface{}, len(md))
for k, v := range md {
invAttachment[k] = v
}
invo := invocation.NewRPCInvocation("GetMobileInfoByUserId", args, invAttachment)
if interceptor == nil {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
info := &grpc_go.UnaryServerInfo{
Server: srv,
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
return result, result.Error()
}
return interceptor(ctx, in, info, handler)
}
// UserCenterService_ServiceDesc is the grpc_go.ServiceDesc for UserCenterService service.
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var UserCenterService_ServiceDesc = grpc_go.ServiceDesc{
ServiceName: "UserCenterService",
HandlerType: (*UserCenterServiceServer)(nil),
Methods: []grpc_go.MethodDesc{
{
MethodName: "GetUserBasicByTmpToken",
Handler: _UserCenterService_GetUserBasicByTmpToken_Handler,
},
{
MethodName: "GetUserBasicByUserName",
Handler: _UserCenterService_GetUserBasicByUserName_Handler,
},
{
MethodName: "GetUserBasicByMobile",
Handler: _UserCenterService_GetUserBasicByMobile_Handler,
},
{
MethodName: "GetUserBasicByMobileRegister",
Handler: _UserCenterService_GetUserBasicByMobileRegister_Handler,
},
{
MethodName: "GetUserBasicByMail",
Handler: _UserCenterService_GetUserBasicByMail_Handler,
},
{
MethodName: "GetUserBasicByDingtalkCode",
Handler: _UserCenterService_GetUserBasicByDingtalkCode_Handler,
},
{
MethodName: "GetUserBasicByQqCode",
Handler: _UserCenterService_GetUserBasicByQqCode_Handler,
},
{
MethodName: "GetUserBasicByWeChatCode",
Handler: _UserCenterService_GetUserBasicByWeChatCode_Handler,
},
{
MethodName: "GetUserBasicBySinaWeiboCode",
Handler: _UserCenterService_GetUserBasicBySinaWeiboCode_Handler,
},
{
MethodName: "BindingMobile",
Handler: _UserCenterService_BindingMobile_Handler,
},
{
MethodName: "ChangeThirdPartyAccountWithLogin",
Handler: _UserCenterService_ChangeThirdPartyAccountWithLogin_Handler,
},
{
MethodName: "GetMinimalUserInfoByUserId",
Handler: _UserCenterService_GetMinimalUserInfoByUserId_Handler,
},
{
MethodName: "GetMobileInfoByUserId",
Handler: _UserCenterService_GetMobileInfoByUserId_Handler,
},
},
Streams: []grpc_go.StreamDesc{},
Metadata: "UserCenterService.proto",
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xlizy/rpc-interface.git
git@gitee.com:xlizy/rpc-interface.git
xlizy
rpc-interface
rpc-interface
v0.0.16

搜索帮助