2023-02-15 01:10:11 +00:00
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
2023-02-24 02:51:35 +00:00
// - protoc-gen-go-triple v1.0.8
// - protoc v3.21.12
2023-02-15 01:10:11 +00:00
// source: api/account/account.proto
package account
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
// AccountClient is the client API for Account 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 AccountClient interface {
Login ( ctx context . Context , in * LoginRequest , opts ... grpc_go . CallOption ) ( * TokenInfo , common . ErrorWithAttachment )
2023-02-24 02:51:35 +00:00
Logout ( ctx context . Context , in * DecryptJwtRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment )
OffLine ( ctx context . Context , in * CommonRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment )
OnlineLog ( ctx context . Context , in * LoginInfosByUserIdRequest , opts ... grpc_go . CallOption ) ( * LoginLogsResponse , common . ErrorWithAttachment )
2023-02-15 01:10:11 +00:00
CheckPwd ( ctx context . Context , in * CheckPwdRequest , opts ... grpc_go . CallOption ) ( * UpdateResponse , common . ErrorWithAttachment )
Register ( ctx context . Context , in * RegistRequest , opts ... grpc_go . CallOption ) ( * RequestStatus , common . ErrorWithAttachment )
SendMsg ( ctx context . Context , in * SendMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment )
SendMsgRegister ( ctx context . Context , in * SendMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment )
CheckMsg ( ctx context . Context , in * CheckMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment )
SendNewTelNumMsg ( ctx context . Context , in * SendNewTelNumMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment )
UpdateTelNum ( ctx context . Context , in * SendNewTelNumMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment )
Authentication ( ctx context . Context , in * AuthenticationRequest , opts ... grpc_go . CallOption ) ( * RequestStatus , common . ErrorWithAttachment )
DecryptJwt ( ctx context . Context , in * DecryptJwtRequest , opts ... grpc_go . CallOption ) ( * DecryptJwtResponse , common . ErrorWithAttachment )
Info ( ctx context . Context , in * InfoRequest , opts ... grpc_go . CallOption ) ( * InfoResponse , common . ErrorWithAttachment )
List ( ctx context . Context , in * ListRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment )
RandList ( ctx context . Context , in * ListRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment )
ListByIDs ( ctx context . Context , in * ListByIDsRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment )
Remove ( ctx context . Context , in * RemoveRequest , opts ... grpc_go . CallOption ) ( * RemoveResponse , common . ErrorWithAttachment )
Update ( ctx context . Context , in * UpdateRequest , opts ... grpc_go . CallOption ) ( * UpdateResponse , common . ErrorWithAttachment )
PrivacyInfo ( ctx context . Context , in * PrivacyInfoRequest , opts ... grpc_go . CallOption ) ( * AccountInfo , common . ErrorWithAttachment )
UsersByTel ( ctx context . Context , in * UsersByTelRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment )
UserByTel ( ctx context . Context , in * UserByTelRequest , opts ... grpc_go . CallOption ) ( * InfoResponse , common . ErrorWithAttachment )
}
type accountClient struct {
cc * triple . TripleConn
}
type AccountClientImpl struct {
Login func ( ctx context . Context , in * LoginRequest ) ( * TokenInfo , error )
2023-02-24 02:51:35 +00:00
Logout func ( ctx context . Context , in * DecryptJwtRequest ) ( * CommonResponse , error )
OffLine func ( ctx context . Context , in * CommonRequest ) ( * CommonResponse , error )
OnlineLog func ( ctx context . Context , in * LoginInfosByUserIdRequest ) ( * LoginLogsResponse , error )
2023-02-15 01:10:11 +00:00
CheckPwd func ( ctx context . Context , in * CheckPwdRequest ) ( * UpdateResponse , error )
Register func ( ctx context . Context , in * RegistRequest ) ( * RequestStatus , error )
SendMsg func ( ctx context . Context , in * SendMsgRequest ) ( * SendMsgStatusResponse , error )
SendMsgRegister func ( ctx context . Context , in * SendMsgRequest ) ( * SendMsgStatusResponse , error )
CheckMsg func ( ctx context . Context , in * CheckMsgRequest ) ( * SendMsgStatusResponse , error )
SendNewTelNumMsg func ( ctx context . Context , in * SendNewTelNumMsgRequest ) ( * SendMsgStatusResponse , error )
UpdateTelNum func ( ctx context . Context , in * SendNewTelNumMsgRequest ) ( * SendMsgStatusResponse , error )
Authentication func ( ctx context . Context , in * AuthenticationRequest ) ( * RequestStatus , error )
DecryptJwt func ( ctx context . Context , in * DecryptJwtRequest ) ( * DecryptJwtResponse , error )
Info func ( ctx context . Context , in * InfoRequest ) ( * InfoResponse , error )
List func ( ctx context . Context , in * ListRequest ) ( * ListResponse , error )
RandList func ( ctx context . Context , in * ListRequest ) ( * ListResponse , error )
ListByIDs func ( ctx context . Context , in * ListByIDsRequest ) ( * ListResponse , error )
Remove func ( ctx context . Context , in * RemoveRequest ) ( * RemoveResponse , error )
Update func ( ctx context . Context , in * UpdateRequest ) ( * UpdateResponse , error )
PrivacyInfo func ( ctx context . Context , in * PrivacyInfoRequest ) ( * AccountInfo , error )
UsersByTel func ( ctx context . Context , in * UsersByTelRequest ) ( * ListResponse , error )
UserByTel func ( ctx context . Context , in * UserByTelRequest ) ( * InfoResponse , error )
}
func ( c * AccountClientImpl ) GetDubboStub ( cc * triple . TripleConn ) AccountClient {
return NewAccountClient ( cc )
}
func ( c * AccountClientImpl ) XXX_InterfaceName ( ) string {
return "account.Account"
}
func NewAccountClient ( cc * triple . TripleConn ) AccountClient {
return & accountClient { cc }
}
func ( c * accountClient ) Login ( ctx context . Context , in * LoginRequest , opts ... grpc_go . CallOption ) ( * TokenInfo , common . ErrorWithAttachment ) {
out := new ( TokenInfo )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/Login" , in , out )
}
2023-02-24 02:51:35 +00:00
func ( c * accountClient ) Logout ( ctx context . Context , in * DecryptJwtRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment ) {
out := new ( CommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/Logout" , in , out )
}
func ( c * accountClient ) OffLine ( ctx context . Context , in * CommonRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment ) {
out := new ( CommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/OffLine" , in , out )
}
func ( c * accountClient ) OnlineLog ( ctx context . Context , in * LoginInfosByUserIdRequest , opts ... grpc_go . CallOption ) ( * LoginLogsResponse , common . ErrorWithAttachment ) {
out := new ( LoginLogsResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/OnlineLog" , in , out )
}
2023-02-15 01:10:11 +00:00
func ( c * accountClient ) CheckPwd ( ctx context . Context , in * CheckPwdRequest , opts ... grpc_go . CallOption ) ( * UpdateResponse , common . ErrorWithAttachment ) {
out := new ( UpdateResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CheckPwd" , in , out )
}
func ( c * accountClient ) Register ( ctx context . Context , in * RegistRequest , opts ... grpc_go . CallOption ) ( * RequestStatus , common . ErrorWithAttachment ) {
out := new ( RequestStatus )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/Register" , in , out )
}
func ( c * accountClient ) SendMsg ( ctx context . Context , in * SendMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment ) {
out := new ( SendMsgStatusResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/SendMsg" , in , out )
}
func ( c * accountClient ) SendMsgRegister ( ctx context . Context , in * SendMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment ) {
out := new ( SendMsgStatusResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/SendMsgRegister" , in , out )
}
func ( c * accountClient ) CheckMsg ( ctx context . Context , in * CheckMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment ) {
out := new ( SendMsgStatusResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CheckMsg" , in , out )
}
func ( c * accountClient ) SendNewTelNumMsg ( ctx context . Context , in * SendNewTelNumMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment ) {
out := new ( SendMsgStatusResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/SendNewTelNumMsg" , in , out )
}
func ( c * accountClient ) UpdateTelNum ( ctx context . Context , in * SendNewTelNumMsgRequest , opts ... grpc_go . CallOption ) ( * SendMsgStatusResponse , common . ErrorWithAttachment ) {
out := new ( SendMsgStatusResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UpdateTelNum" , in , out )
}
func ( c * accountClient ) Authentication ( ctx context . Context , in * AuthenticationRequest , opts ... grpc_go . CallOption ) ( * RequestStatus , common . ErrorWithAttachment ) {
out := new ( RequestStatus )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/Authentication" , in , out )
}
func ( c * accountClient ) DecryptJwt ( ctx context . Context , in * DecryptJwtRequest , opts ... grpc_go . CallOption ) ( * DecryptJwtResponse , common . ErrorWithAttachment ) {
out := new ( DecryptJwtResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/DecryptJwt" , in , out )
}
func ( c * accountClient ) Info ( ctx context . Context , in * InfoRequest , opts ... grpc_go . CallOption ) ( * InfoResponse , common . ErrorWithAttachment ) {
out := new ( InfoResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/Info" , in , out )
}
func ( c * accountClient ) List ( ctx context . Context , in * ListRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment ) {
out := new ( ListResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/List" , in , out )
}
func ( c * accountClient ) RandList ( ctx context . Context , in * ListRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment ) {
out := new ( ListResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/RandList" , in , out )
}
func ( c * accountClient ) ListByIDs ( ctx context . Context , in * ListByIDsRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment ) {
out := new ( ListResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ListByIDs" , in , out )
}
func ( c * accountClient ) Remove ( ctx context . Context , in * RemoveRequest , opts ... grpc_go . CallOption ) ( * RemoveResponse , common . ErrorWithAttachment ) {
out := new ( RemoveResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/Remove" , in , out )
}
func ( c * accountClient ) Update ( ctx context . Context , in * UpdateRequest , opts ... grpc_go . CallOption ) ( * UpdateResponse , common . ErrorWithAttachment ) {
out := new ( UpdateResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/Update" , in , out )
}
func ( c * accountClient ) PrivacyInfo ( ctx context . Context , in * PrivacyInfoRequest , opts ... grpc_go . CallOption ) ( * AccountInfo , common . ErrorWithAttachment ) {
out := new ( AccountInfo )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/PrivacyInfo" , in , out )
}
func ( c * accountClient ) UsersByTel ( ctx context . Context , in * UsersByTelRequest , opts ... grpc_go . CallOption ) ( * ListResponse , common . ErrorWithAttachment ) {
out := new ( ListResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UsersByTel" , in , out )
}
func ( c * accountClient ) UserByTel ( ctx context . Context , in * UserByTelRequest , opts ... grpc_go . CallOption ) ( * InfoResponse , common . ErrorWithAttachment ) {
out := new ( InfoResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UserByTel" , in , out )
}
// AccountServer is the server API for Account service.
// All implementations must embed UnimplementedAccountServer
// for forward compatibility
type AccountServer interface {
Login ( context . Context , * LoginRequest ) ( * TokenInfo , error )
2023-02-24 02:51:35 +00:00
Logout ( context . Context , * DecryptJwtRequest ) ( * CommonResponse , error )
OffLine ( context . Context , * CommonRequest ) ( * CommonResponse , error )
OnlineLog ( context . Context , * LoginInfosByUserIdRequest ) ( * LoginLogsResponse , error )
2023-02-15 01:10:11 +00:00
CheckPwd ( context . Context , * CheckPwdRequest ) ( * UpdateResponse , error )
Register ( context . Context , * RegistRequest ) ( * RequestStatus , error )
SendMsg ( context . Context , * SendMsgRequest ) ( * SendMsgStatusResponse , error )
SendMsgRegister ( context . Context , * SendMsgRequest ) ( * SendMsgStatusResponse , error )
CheckMsg ( context . Context , * CheckMsgRequest ) ( * SendMsgStatusResponse , error )
SendNewTelNumMsg ( context . Context , * SendNewTelNumMsgRequest ) ( * SendMsgStatusResponse , error )
UpdateTelNum ( context . Context , * SendNewTelNumMsgRequest ) ( * SendMsgStatusResponse , error )
Authentication ( context . Context , * AuthenticationRequest ) ( * RequestStatus , error )
DecryptJwt ( context . Context , * DecryptJwtRequest ) ( * DecryptJwtResponse , error )
Info ( context . Context , * InfoRequest ) ( * InfoResponse , error )
List ( context . Context , * ListRequest ) ( * ListResponse , error )
RandList ( context . Context , * ListRequest ) ( * ListResponse , error )
ListByIDs ( context . Context , * ListByIDsRequest ) ( * ListResponse , error )
Remove ( context . Context , * RemoveRequest ) ( * RemoveResponse , error )
Update ( context . Context , * UpdateRequest ) ( * UpdateResponse , error )
PrivacyInfo ( context . Context , * PrivacyInfoRequest ) ( * AccountInfo , error )
UsersByTel ( context . Context , * UsersByTelRequest ) ( * ListResponse , error )
UserByTel ( context . Context , * UserByTelRequest ) ( * InfoResponse , error )
mustEmbedUnimplementedAccountServer ( )
}
// UnimplementedAccountServer must be embedded to have forward compatible implementations.
type UnimplementedAccountServer struct {
proxyImpl protocol . Invoker
}
func ( UnimplementedAccountServer ) Login ( context . Context , * LoginRequest ) ( * TokenInfo , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Login not implemented" )
}
2023-02-24 02:51:35 +00:00
func ( UnimplementedAccountServer ) Logout ( context . Context , * DecryptJwtRequest ) ( * CommonResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Logout not implemented" )
}
func ( UnimplementedAccountServer ) OffLine ( context . Context , * CommonRequest ) ( * CommonResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OffLine not implemented" )
}
func ( UnimplementedAccountServer ) OnlineLog ( context . Context , * LoginInfosByUserIdRequest ) ( * LoginLogsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method OnlineLog not implemented" )
}
2023-02-15 01:10:11 +00:00
func ( UnimplementedAccountServer ) CheckPwd ( context . Context , * CheckPwdRequest ) ( * UpdateResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CheckPwd not implemented" )
}
func ( UnimplementedAccountServer ) Register ( context . Context , * RegistRequest ) ( * RequestStatus , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Register not implemented" )
}
func ( UnimplementedAccountServer ) SendMsg ( context . Context , * SendMsgRequest ) ( * SendMsgStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SendMsg not implemented" )
}
func ( UnimplementedAccountServer ) SendMsgRegister ( context . Context , * SendMsgRequest ) ( * SendMsgStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SendMsgRegister not implemented" )
}
func ( UnimplementedAccountServer ) CheckMsg ( context . Context , * CheckMsgRequest ) ( * SendMsgStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CheckMsg not implemented" )
}
func ( UnimplementedAccountServer ) SendNewTelNumMsg ( context . Context , * SendNewTelNumMsgRequest ) ( * SendMsgStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SendNewTelNumMsg not implemented" )
}
func ( UnimplementedAccountServer ) UpdateTelNum ( context . Context , * SendNewTelNumMsgRequest ) ( * SendMsgStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateTelNum not implemented" )
}
func ( UnimplementedAccountServer ) Authentication ( context . Context , * AuthenticationRequest ) ( * RequestStatus , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Authentication not implemented" )
}
func ( UnimplementedAccountServer ) DecryptJwt ( context . Context , * DecryptJwtRequest ) ( * DecryptJwtResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DecryptJwt not implemented" )
}
func ( UnimplementedAccountServer ) Info ( context . Context , * InfoRequest ) ( * InfoResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Info not implemented" )
}
func ( UnimplementedAccountServer ) List ( context . Context , * ListRequest ) ( * ListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method List not implemented" )
}
func ( UnimplementedAccountServer ) RandList ( context . Context , * ListRequest ) ( * ListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method RandList not implemented" )
}
func ( UnimplementedAccountServer ) ListByIDs ( context . Context , * ListByIDsRequest ) ( * ListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListByIDs not implemented" )
}
func ( UnimplementedAccountServer ) Remove ( context . Context , * RemoveRequest ) ( * RemoveResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Remove not implemented" )
}
func ( UnimplementedAccountServer ) Update ( context . Context , * UpdateRequest ) ( * UpdateResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Update not implemented" )
}
func ( UnimplementedAccountServer ) PrivacyInfo ( context . Context , * PrivacyInfoRequest ) ( * AccountInfo , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method PrivacyInfo not implemented" )
}
func ( UnimplementedAccountServer ) UsersByTel ( context . Context , * UsersByTelRequest ) ( * ListResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UsersByTel not implemented" )
}
func ( UnimplementedAccountServer ) UserByTel ( context . Context , * UserByTelRequest ) ( * InfoResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UserByTel not implemented" )
}
func ( s * UnimplementedAccountServer ) XXX_SetProxyImpl ( impl protocol . Invoker ) {
s . proxyImpl = impl
}
func ( s * UnimplementedAccountServer ) XXX_GetProxyImpl ( ) protocol . Invoker {
return s . proxyImpl
}
func ( s * UnimplementedAccountServer ) XXX_ServiceDesc ( ) * grpc_go . ServiceDesc {
return & Account_ServiceDesc
}
func ( s * UnimplementedAccountServer ) XXX_InterfaceName ( ) string {
return "account.Account"
}
func ( UnimplementedAccountServer ) mustEmbedUnimplementedAccountServer ( ) { }
// UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to AccountServer will
// result in compilation errors.
type UnsafeAccountServer interface {
mustEmbedUnimplementedAccountServer ( )
}
func RegisterAccountServer ( s grpc_go . ServiceRegistrar , srv AccountServer ) {
s . RegisterService ( & Account_ServiceDesc , srv )
}
func _Account_Login_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LoginRequest )
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 ( "Login" , 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 )
}
2023-02-24 02:51:35 +00:00
func _Account_Logout_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DecryptJwtRequest )
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 ( "Logout" , 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 _Account_OffLine_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CommonRequest )
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 ( "OffLine" , 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 _Account_OnlineLog_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LoginInfosByUserIdRequest )
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 ( "OnlineLog" , 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 )
}
2023-02-15 01:10:11 +00:00
func _Account_CheckPwd_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CheckPwdRequest )
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 ( "CheckPwd" , 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 _Account_Register_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RegistRequest )
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 ( "Register" , 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 _Account_SendMsg_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SendMsgRequest )
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 ( "SendMsg" , 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 _Account_SendMsgRegister_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SendMsgRequest )
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 ( "SendMsgRegister" , 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 _Account_CheckMsg_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CheckMsgRequest )
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 ( "CheckMsg" , 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 _Account_SendNewTelNumMsg_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SendNewTelNumMsgRequest )
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 ( "SendNewTelNumMsg" , 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 _Account_UpdateTelNum_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SendNewTelNumMsgRequest )
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 ( "UpdateTelNum" , 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 _Account_Authentication_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( AuthenticationRequest )
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 ( "Authentication" , 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 _Account_DecryptJwt_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DecryptJwtRequest )
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 ( "DecryptJwt" , 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 _Account_Info_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( InfoRequest )
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 ( "Info" , 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 _Account_List_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListRequest )
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 ( "List" , 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 _Account_RandList_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListRequest )
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 ( "RandList" , 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 _Account_ListByIDs_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListByIDsRequest )
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 ( "ListByIDs" , 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 _Account_Remove_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RemoveRequest )
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 ( "Remove" , 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 _Account_Update_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateRequest )
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 ( "Update" , 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 _Account_PrivacyInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( PrivacyInfoRequest )
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 ( "PrivacyInfo" , 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 _Account_UsersByTel_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UsersByTelRequest )
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 ( "UsersByTel" , 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 _Account_UserByTel_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UserByTelRequest )
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 ( "UserByTel" , 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 )
}
// Account_ServiceDesc is the grpc_go.ServiceDesc for Account service.
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var Account_ServiceDesc = grpc_go . ServiceDesc {
ServiceName : "account.Account" ,
HandlerType : ( * AccountServer ) ( nil ) ,
Methods : [ ] grpc_go . MethodDesc {
{
MethodName : "Login" ,
Handler : _Account_Login_Handler ,
} ,
2023-02-24 02:51:35 +00:00
{
MethodName : "Logout" ,
Handler : _Account_Logout_Handler ,
} ,
{
MethodName : "OffLine" ,
Handler : _Account_OffLine_Handler ,
} ,
{
MethodName : "OnlineLog" ,
Handler : _Account_OnlineLog_Handler ,
} ,
2023-02-15 01:10:11 +00:00
{
MethodName : "CheckPwd" ,
Handler : _Account_CheckPwd_Handler ,
} ,
{
MethodName : "Register" ,
Handler : _Account_Register_Handler ,
} ,
{
MethodName : "SendMsg" ,
Handler : _Account_SendMsg_Handler ,
} ,
{
MethodName : "SendMsgRegister" ,
Handler : _Account_SendMsgRegister_Handler ,
} ,
{
MethodName : "CheckMsg" ,
Handler : _Account_CheckMsg_Handler ,
} ,
{
MethodName : "SendNewTelNumMsg" ,
Handler : _Account_SendNewTelNumMsg_Handler ,
} ,
{
MethodName : "UpdateTelNum" ,
Handler : _Account_UpdateTelNum_Handler ,
} ,
{
MethodName : "Authentication" ,
Handler : _Account_Authentication_Handler ,
} ,
{
MethodName : "DecryptJwt" ,
Handler : _Account_DecryptJwt_Handler ,
} ,
{
MethodName : "Info" ,
Handler : _Account_Info_Handler ,
} ,
{
MethodName : "List" ,
Handler : _Account_List_Handler ,
} ,
{
MethodName : "RandList" ,
Handler : _Account_RandList_Handler ,
} ,
{
MethodName : "ListByIDs" ,
Handler : _Account_ListByIDs_Handler ,
} ,
{
MethodName : "Remove" ,
Handler : _Account_Remove_Handler ,
} ,
{
MethodName : "Update" ,
Handler : _Account_Update_Handler ,
} ,
{
MethodName : "PrivacyInfo" ,
Handler : _Account_PrivacyInfo_Handler ,
} ,
{
MethodName : "UsersByTel" ,
Handler : _Account_UsersByTel_Handler ,
} ,
{
MethodName : "UserByTel" ,
Handler : _Account_UserByTel_Handler ,
} ,
} ,
Streams : [ ] grpc_go . StreamDesc { } ,
Metadata : "api/account/account.proto" ,
}