418 lines
17 KiB
Go
418 lines
17 KiB
Go
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-triple v1.0.8
|
|
// - protoc v3.21.8
|
|
// source: artistinfo.proto
|
|
|
|
package artistInfo
|
|
|
|
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
|
|
|
|
// ArtistInfoClient is the client API for ArtistInfo 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 ArtistInfoClient interface {
|
|
GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc_go.CallOption) (*GetUserInfoRespond, common.ErrorWithAttachment)
|
|
CreateUserInfo(ctx context.Context, in *UserInfoCommonRequest, opts ...grpc_go.CallOption) (*CreateUserInfoRespond, common.ErrorWithAttachment)
|
|
UpdateUserInfo(ctx context.Context, in *UserInfoCommonRequest, opts ...grpc_go.CallOption) (*UpdateUserInfoRespond, common.ErrorWithAttachment)
|
|
UserUpdateTel(ctx context.Context, in *UserUpdateTelRequest, opts ...grpc_go.CallOption) (*UserUpdateTelRespond, common.ErrorWithAttachment)
|
|
UserUpdateMsg(ctx context.Context, in *UserUpdateMsgRequest, opts ...grpc_go.CallOption) (*UserUpdateMsgRespond, common.ErrorWithAttachment)
|
|
Verifyfdd(ctx context.Context, in *VerifyfddRequest, opts ...grpc_go.CallOption) (*VerifyfddRespond, common.ErrorWithAttachment)
|
|
FinishVerify(ctx context.Context, in *FinishVerifyRequest, opts ...grpc_go.CallOption) (*FinishVerifyRespond, common.ErrorWithAttachment)
|
|
}
|
|
|
|
type artistInfoClient struct {
|
|
cc *triple.TripleConn
|
|
}
|
|
|
|
type ArtistInfoClientImpl struct {
|
|
GetUserInfo func(ctx context.Context, in *GetUserInfoRequest) (*GetUserInfoRespond, error)
|
|
CreateUserInfo func(ctx context.Context, in *UserInfoCommonRequest) (*CreateUserInfoRespond, error)
|
|
UpdateUserInfo func(ctx context.Context, in *UserInfoCommonRequest) (*UpdateUserInfoRespond, error)
|
|
UserUpdateTel func(ctx context.Context, in *UserUpdateTelRequest) (*UserUpdateTelRespond, error)
|
|
UserUpdateMsg func(ctx context.Context, in *UserUpdateMsgRequest) (*UserUpdateMsgRespond, error)
|
|
Verifyfdd func(ctx context.Context, in *VerifyfddRequest) (*VerifyfddRespond, error)
|
|
FinishVerify func(ctx context.Context, in *FinishVerifyRequest) (*FinishVerifyRespond, error)
|
|
}
|
|
|
|
func (c *ArtistInfoClientImpl) GetDubboStub(cc *triple.TripleConn) ArtistInfoClient {
|
|
return NewArtistInfoClient(cc)
|
|
}
|
|
|
|
func (c *ArtistInfoClientImpl) XXX_InterfaceName() string {
|
|
return "ArtistInfo.ArtistInfo"
|
|
}
|
|
|
|
func NewArtistInfoClient(cc *triple.TripleConn) ArtistInfoClient {
|
|
return &artistInfoClient{cc}
|
|
}
|
|
|
|
func (c *artistInfoClient) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc_go.CallOption) (*GetUserInfoRespond, common.ErrorWithAttachment) {
|
|
out := new(GetUserInfoRespond)
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetUserInfo", in, out)
|
|
}
|
|
|
|
func (c *artistInfoClient) CreateUserInfo(ctx context.Context, in *UserInfoCommonRequest, opts ...grpc_go.CallOption) (*CreateUserInfoRespond, common.ErrorWithAttachment) {
|
|
out := new(CreateUserInfoRespond)
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CreateUserInfo", in, out)
|
|
}
|
|
|
|
func (c *artistInfoClient) UpdateUserInfo(ctx context.Context, in *UserInfoCommonRequest, opts ...grpc_go.CallOption) (*UpdateUserInfoRespond, common.ErrorWithAttachment) {
|
|
out := new(UpdateUserInfoRespond)
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UpdateUserInfo", in, out)
|
|
}
|
|
|
|
func (c *artistInfoClient) UserUpdateTel(ctx context.Context, in *UserUpdateTelRequest, opts ...grpc_go.CallOption) (*UserUpdateTelRespond, common.ErrorWithAttachment) {
|
|
out := new(UserUpdateTelRespond)
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UserUpdateTel", in, out)
|
|
}
|
|
|
|
func (c *artistInfoClient) UserUpdateMsg(ctx context.Context, in *UserUpdateMsgRequest, opts ...grpc_go.CallOption) (*UserUpdateMsgRespond, common.ErrorWithAttachment) {
|
|
out := new(UserUpdateMsgRespond)
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UserUpdateMsg", in, out)
|
|
}
|
|
|
|
func (c *artistInfoClient) Verifyfdd(ctx context.Context, in *VerifyfddRequest, opts ...grpc_go.CallOption) (*VerifyfddRespond, common.ErrorWithAttachment) {
|
|
out := new(VerifyfddRespond)
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/Verifyfdd", in, out)
|
|
}
|
|
|
|
func (c *artistInfoClient) FinishVerify(ctx context.Context, in *FinishVerifyRequest, opts ...grpc_go.CallOption) (*FinishVerifyRespond, common.ErrorWithAttachment) {
|
|
out := new(FinishVerifyRespond)
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/FinishVerify", in, out)
|
|
}
|
|
|
|
// ArtistInfoServer is the server API for ArtistInfo service.
|
|
// All implementations must embed UnimplementedArtistInfoServer
|
|
// for forward compatibility
|
|
type ArtistInfoServer interface {
|
|
GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoRespond, error)
|
|
CreateUserInfo(context.Context, *UserInfoCommonRequest) (*CreateUserInfoRespond, error)
|
|
UpdateUserInfo(context.Context, *UserInfoCommonRequest) (*UpdateUserInfoRespond, error)
|
|
UserUpdateTel(context.Context, *UserUpdateTelRequest) (*UserUpdateTelRespond, error)
|
|
UserUpdateMsg(context.Context, *UserUpdateMsgRequest) (*UserUpdateMsgRespond, error)
|
|
Verifyfdd(context.Context, *VerifyfddRequest) (*VerifyfddRespond, error)
|
|
FinishVerify(context.Context, *FinishVerifyRequest) (*FinishVerifyRespond, error)
|
|
mustEmbedUnimplementedArtistInfoServer()
|
|
}
|
|
|
|
// UnimplementedArtistInfoServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedArtistInfoServer struct {
|
|
proxyImpl protocol.Invoker
|
|
}
|
|
|
|
func (UnimplementedArtistInfoServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoRespond, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
|
|
}
|
|
func (UnimplementedArtistInfoServer) CreateUserInfo(context.Context, *UserInfoCommonRequest) (*CreateUserInfoRespond, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateUserInfo not implemented")
|
|
}
|
|
func (UnimplementedArtistInfoServer) UpdateUserInfo(context.Context, *UserInfoCommonRequest) (*UpdateUserInfoRespond, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented")
|
|
}
|
|
func (UnimplementedArtistInfoServer) UserUpdateTel(context.Context, *UserUpdateTelRequest) (*UserUpdateTelRespond, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UserUpdateTel not implemented")
|
|
}
|
|
func (UnimplementedArtistInfoServer) UserUpdateMsg(context.Context, *UserUpdateMsgRequest) (*UserUpdateMsgRespond, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UserUpdateMsg not implemented")
|
|
}
|
|
func (UnimplementedArtistInfoServer) Verifyfdd(context.Context, *VerifyfddRequest) (*VerifyfddRespond, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Verifyfdd not implemented")
|
|
}
|
|
func (UnimplementedArtistInfoServer) FinishVerify(context.Context, *FinishVerifyRequest) (*FinishVerifyRespond, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method FinishVerify not implemented")
|
|
}
|
|
func (s *UnimplementedArtistInfoServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
|
s.proxyImpl = impl
|
|
}
|
|
|
|
func (s *UnimplementedArtistInfoServer) XXX_GetProxyImpl() protocol.Invoker {
|
|
return s.proxyImpl
|
|
}
|
|
|
|
func (s *UnimplementedArtistInfoServer) XXX_ServiceDesc() *grpc_go.ServiceDesc {
|
|
return &ArtistInfo_ServiceDesc
|
|
}
|
|
func (s *UnimplementedArtistInfoServer) XXX_InterfaceName() string {
|
|
return "ArtistInfo.ArtistInfo"
|
|
}
|
|
|
|
func (UnimplementedArtistInfoServer) mustEmbedUnimplementedArtistInfoServer() {}
|
|
|
|
// UnsafeArtistInfoServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to ArtistInfoServer will
|
|
// result in compilation errors.
|
|
type UnsafeArtistInfoServer interface {
|
|
mustEmbedUnimplementedArtistInfoServer()
|
|
}
|
|
|
|
func RegisterArtistInfoServer(s grpc_go.ServiceRegistrar, srv ArtistInfoServer) {
|
|
s.RegisterService(&ArtistInfo_ServiceDesc, srv)
|
|
}
|
|
|
|
func _ArtistInfo_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetUserInfoRequest)
|
|
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("GetUserInfo", 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 _ArtistInfo_CreateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UserInfoCommonRequest)
|
|
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("CreateUserInfo", 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 _ArtistInfo_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UserInfoCommonRequest)
|
|
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("UpdateUserInfo", 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 _ArtistInfo_UserUpdateTel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UserUpdateTelRequest)
|
|
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("UserUpdateTel", 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 _ArtistInfo_UserUpdateMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UserUpdateMsgRequest)
|
|
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("UserUpdateMsg", 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 _ArtistInfo_Verifyfdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyfddRequest)
|
|
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("Verifyfdd", 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 _ArtistInfo_FinishVerify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(FinishVerifyRequest)
|
|
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("FinishVerify", 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)
|
|
}
|
|
|
|
// ArtistInfo_ServiceDesc is the grpc_go.ServiceDesc for ArtistInfo service.
|
|
// It's only intended for direct use with grpc_go.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var ArtistInfo_ServiceDesc = grpc_go.ServiceDesc{
|
|
ServiceName: "ArtistInfo.ArtistInfo",
|
|
HandlerType: (*ArtistInfoServer)(nil),
|
|
Methods: []grpc_go.MethodDesc{
|
|
{
|
|
MethodName: "GetUserInfo",
|
|
Handler: _ArtistInfo_GetUserInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateUserInfo",
|
|
Handler: _ArtistInfo_CreateUserInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateUserInfo",
|
|
Handler: _ArtistInfo_UpdateUserInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "UserUpdateTel",
|
|
Handler: _ArtistInfo_UserUpdateTel_Handler,
|
|
},
|
|
{
|
|
MethodName: "UserUpdateMsg",
|
|
Handler: _ArtistInfo_UserUpdateMsg_Handler,
|
|
},
|
|
{
|
|
MethodName: "Verifyfdd",
|
|
Handler: _ArtistInfo_Verifyfdd_Handler,
|
|
},
|
|
{
|
|
MethodName: "FinishVerify",
|
|
Handler: _ArtistInfo_FinishVerify_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc_go.StreamDesc{},
|
|
Metadata: "artistinfo.proto",
|
|
}
|