// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package card import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // CardClient is the client API for Card 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 CardClient interface { CreateAccountUser(ctx context.Context, in *CreateAccountUserRequest, opts ...grpc.CallOption) (*CreateAccountUserReply, error) LoginAccount(ctx context.Context, in *LoginAccountRequest, opts ...grpc.CallOption) (*LoginAccountReply, error) WxRegisterLogin(ctx context.Context, in *WxRegisterLoginRequest, opts ...grpc.CallOption) (*WxRegisterLoginReply, error) CreateCard(ctx context.Context, in *CreateCardRequest, opts ...grpc.CallOption) (*CreateCardReply, error) GetCardInfo(ctx context.Context, in *GetCardInfoRequest, opts ...grpc.CallOption) (*GetCardInfoReply, error) GetMyCards(ctx context.Context, in *GetMyCardsRequest, opts ...grpc.CallOption) (*GetMyCardsReply, error) DelCard(ctx context.Context, in *DelCardInfoRequest, opts ...grpc.CallOption) (*DelCardReply, error) SaveCard(ctx context.Context, in *SaveCardInfoRequest, opts ...grpc.CallOption) (*SaveCardReply, error) SearchCard(ctx context.Context, in *SearchCardRequest, opts ...grpc.CallOption) (*SearchCardReply, error) GetTemplates(ctx context.Context, in *GetTemplatesRequest, opts ...grpc.CallOption) (*GetTemplatesReply, error) CreateShareToken(ctx context.Context, in *CreateShareTokenRequest, opts ...grpc.CallOption) (*CreateShareTokenReply, error) AddCardByShareToken(ctx context.Context, in *AddCardByShareTokenRequest, opts ...grpc.CallOption) (*AddCardByShareTokenReply, error) OCRCard(ctx context.Context, in *OCRCardRequest, opts ...grpc.CallOption) (*OCRCardReply, error) OssUpload(ctx context.Context, in *OssUploadRequest, opts ...grpc.CallOption) (*OssUploadReplay, error) } type cardClient struct { cc grpc.ClientConnInterface } func NewCardClient(cc grpc.ClientConnInterface) CardClient { return &cardClient{cc} } func (c *cardClient) CreateAccountUser(ctx context.Context, in *CreateAccountUserRequest, opts ...grpc.CallOption) (*CreateAccountUserReply, error) { out := new(CreateAccountUserReply) err := c.cc.Invoke(ctx, "/card.Card/CreateAccountUser", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) LoginAccount(ctx context.Context, in *LoginAccountRequest, opts ...grpc.CallOption) (*LoginAccountReply, error) { out := new(LoginAccountReply) err := c.cc.Invoke(ctx, "/card.Card/LoginAccount", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) WxRegisterLogin(ctx context.Context, in *WxRegisterLoginRequest, opts ...grpc.CallOption) (*WxRegisterLoginReply, error) { out := new(WxRegisterLoginReply) err := c.cc.Invoke(ctx, "/card.Card/WxRegisterLogin", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) CreateCard(ctx context.Context, in *CreateCardRequest, opts ...grpc.CallOption) (*CreateCardReply, error) { out := new(CreateCardReply) err := c.cc.Invoke(ctx, "/card.Card/CreateCard", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) GetCardInfo(ctx context.Context, in *GetCardInfoRequest, opts ...grpc.CallOption) (*GetCardInfoReply, error) { out := new(GetCardInfoReply) err := c.cc.Invoke(ctx, "/card.Card/GetCardInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) GetMyCards(ctx context.Context, in *GetMyCardsRequest, opts ...grpc.CallOption) (*GetMyCardsReply, error) { out := new(GetMyCardsReply) err := c.cc.Invoke(ctx, "/card.Card/GetMyCards", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) DelCard(ctx context.Context, in *DelCardInfoRequest, opts ...grpc.CallOption) (*DelCardReply, error) { out := new(DelCardReply) err := c.cc.Invoke(ctx, "/card.Card/DelCard", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) SaveCard(ctx context.Context, in *SaveCardInfoRequest, opts ...grpc.CallOption) (*SaveCardReply, error) { out := new(SaveCardReply) err := c.cc.Invoke(ctx, "/card.Card/SaveCard", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) SearchCard(ctx context.Context, in *SearchCardRequest, opts ...grpc.CallOption) (*SearchCardReply, error) { out := new(SearchCardReply) err := c.cc.Invoke(ctx, "/card.Card/SearchCard", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) GetTemplates(ctx context.Context, in *GetTemplatesRequest, opts ...grpc.CallOption) (*GetTemplatesReply, error) { out := new(GetTemplatesReply) err := c.cc.Invoke(ctx, "/card.Card/GetTemplates", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) CreateShareToken(ctx context.Context, in *CreateShareTokenRequest, opts ...grpc.CallOption) (*CreateShareTokenReply, error) { out := new(CreateShareTokenReply) err := c.cc.Invoke(ctx, "/card.Card/CreateShareToken", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) AddCardByShareToken(ctx context.Context, in *AddCardByShareTokenRequest, opts ...grpc.CallOption) (*AddCardByShareTokenReply, error) { out := new(AddCardByShareTokenReply) err := c.cc.Invoke(ctx, "/card.Card/AddCardByShareToken", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) OCRCard(ctx context.Context, in *OCRCardRequest, opts ...grpc.CallOption) (*OCRCardReply, error) { out := new(OCRCardReply) err := c.cc.Invoke(ctx, "/card.Card/OCRCard", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *cardClient) OssUpload(ctx context.Context, in *OssUploadRequest, opts ...grpc.CallOption) (*OssUploadReplay, error) { out := new(OssUploadReplay) err := c.cc.Invoke(ctx, "/card.Card/OssUpload", in, out, opts...) if err != nil { return nil, err } return out, nil } // CardServer is the server API for Card service. // All implementations must embed UnimplementedCardServer // for forward compatibility type CardServer interface { CreateAccountUser(context.Context, *CreateAccountUserRequest) (*CreateAccountUserReply, error) LoginAccount(context.Context, *LoginAccountRequest) (*LoginAccountReply, error) WxRegisterLogin(context.Context, *WxRegisterLoginRequest) (*WxRegisterLoginReply, error) CreateCard(context.Context, *CreateCardRequest) (*CreateCardReply, error) GetCardInfo(context.Context, *GetCardInfoRequest) (*GetCardInfoReply, error) GetMyCards(context.Context, *GetMyCardsRequest) (*GetMyCardsReply, error) DelCard(context.Context, *DelCardInfoRequest) (*DelCardReply, error) SaveCard(context.Context, *SaveCardInfoRequest) (*SaveCardReply, error) SearchCard(context.Context, *SearchCardRequest) (*SearchCardReply, error) GetTemplates(context.Context, *GetTemplatesRequest) (*GetTemplatesReply, error) CreateShareToken(context.Context, *CreateShareTokenRequest) (*CreateShareTokenReply, error) AddCardByShareToken(context.Context, *AddCardByShareTokenRequest) (*AddCardByShareTokenReply, error) OCRCard(context.Context, *OCRCardRequest) (*OCRCardReply, error) OssUpload(context.Context, *OssUploadRequest) (*OssUploadReplay, error) mustEmbedUnimplementedCardServer() } // UnimplementedCardServer must be embedded to have forward compatible implementations. type UnimplementedCardServer struct { } func (UnimplementedCardServer) CreateAccountUser(context.Context, *CreateAccountUserRequest) (*CreateAccountUserReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAccountUser not implemented") } func (UnimplementedCardServer) LoginAccount(context.Context, *LoginAccountRequest) (*LoginAccountReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LoginAccount not implemented") } func (UnimplementedCardServer) WxRegisterLogin(context.Context, *WxRegisterLoginRequest) (*WxRegisterLoginReply, error) { return nil, status.Errorf(codes.Unimplemented, "method WxRegisterLogin not implemented") } func (UnimplementedCardServer) CreateCard(context.Context, *CreateCardRequest) (*CreateCardReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateCard not implemented") } func (UnimplementedCardServer) GetCardInfo(context.Context, *GetCardInfoRequest) (*GetCardInfoReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCardInfo not implemented") } func (UnimplementedCardServer) GetMyCards(context.Context, *GetMyCardsRequest) (*GetMyCardsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMyCards not implemented") } func (UnimplementedCardServer) DelCard(context.Context, *DelCardInfoRequest) (*DelCardReply, error) { return nil, status.Errorf(codes.Unimplemented, "method DelCard not implemented") } func (UnimplementedCardServer) SaveCard(context.Context, *SaveCardInfoRequest) (*SaveCardReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SaveCard not implemented") } func (UnimplementedCardServer) SearchCard(context.Context, *SearchCardRequest) (*SearchCardReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchCard not implemented") } func (UnimplementedCardServer) GetTemplates(context.Context, *GetTemplatesRequest) (*GetTemplatesReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTemplates not implemented") } func (UnimplementedCardServer) CreateShareToken(context.Context, *CreateShareTokenRequest) (*CreateShareTokenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateShareToken not implemented") } func (UnimplementedCardServer) AddCardByShareToken(context.Context, *AddCardByShareTokenRequest) (*AddCardByShareTokenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method AddCardByShareToken not implemented") } func (UnimplementedCardServer) OCRCard(context.Context, *OCRCardRequest) (*OCRCardReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OCRCard not implemented") } func (UnimplementedCardServer) OssUpload(context.Context, *OssUploadRequest) (*OssUploadReplay, error) { return nil, status.Errorf(codes.Unimplemented, "method OssUpload not implemented") } func (UnimplementedCardServer) mustEmbedUnimplementedCardServer() {} // UnsafeCardServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CardServer will // result in compilation errors. type UnsafeCardServer interface { mustEmbedUnimplementedCardServer() } func RegisterCardServer(s grpc.ServiceRegistrar, srv CardServer) { s.RegisterService(&Card_ServiceDesc, srv) } func _Card_CreateAccountUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateAccountUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).CreateAccountUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/CreateAccountUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).CreateAccountUser(ctx, req.(*CreateAccountUserRequest)) } return interceptor(ctx, in, info, handler) } func _Card_LoginAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoginAccountRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).LoginAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/LoginAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).LoginAccount(ctx, req.(*LoginAccountRequest)) } return interceptor(ctx, in, info, handler) } func _Card_WxRegisterLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WxRegisterLoginRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).WxRegisterLogin(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/WxRegisterLogin", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).WxRegisterLogin(ctx, req.(*WxRegisterLoginRequest)) } return interceptor(ctx, in, info, handler) } func _Card_CreateCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateCardRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).CreateCard(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/CreateCard", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).CreateCard(ctx, req.(*CreateCardRequest)) } return interceptor(ctx, in, info, handler) } func _Card_GetCardInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetCardInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).GetCardInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/GetCardInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).GetCardInfo(ctx, req.(*GetCardInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Card_GetMyCards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetMyCardsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).GetMyCards(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/GetMyCards", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).GetMyCards(ctx, req.(*GetMyCardsRequest)) } return interceptor(ctx, in, info, handler) } func _Card_DelCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DelCardInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).DelCard(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/DelCard", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).DelCard(ctx, req.(*DelCardInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Card_SaveCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SaveCardInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).SaveCard(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/SaveCard", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).SaveCard(ctx, req.(*SaveCardInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Card_SearchCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SearchCardRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).SearchCard(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/SearchCard", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).SearchCard(ctx, req.(*SearchCardRequest)) } return interceptor(ctx, in, info, handler) } func _Card_GetTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetTemplatesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).GetTemplates(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/GetTemplates", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).GetTemplates(ctx, req.(*GetTemplatesRequest)) } return interceptor(ctx, in, info, handler) } func _Card_CreateShareToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateShareTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).CreateShareToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/CreateShareToken", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).CreateShareToken(ctx, req.(*CreateShareTokenRequest)) } return interceptor(ctx, in, info, handler) } func _Card_AddCardByShareToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddCardByShareTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).AddCardByShareToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/AddCardByShareToken", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).AddCardByShareToken(ctx, req.(*AddCardByShareTokenRequest)) } return interceptor(ctx, in, info, handler) } func _Card_OCRCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(OCRCardRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).OCRCard(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/OCRCard", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).OCRCard(ctx, req.(*OCRCardRequest)) } return interceptor(ctx, in, info, handler) } func _Card_OssUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(OssUploadRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CardServer).OssUpload(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/card.Card/OssUpload", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CardServer).OssUpload(ctx, req.(*OssUploadRequest)) } return interceptor(ctx, in, info, handler) } // Card_ServiceDesc is the grpc.ServiceDesc for Card service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Card_ServiceDesc = grpc.ServiceDesc{ ServiceName: "card.Card", HandlerType: (*CardServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAccountUser", Handler: _Card_CreateAccountUser_Handler, }, { MethodName: "LoginAccount", Handler: _Card_LoginAccount_Handler, }, { MethodName: "WxRegisterLogin", Handler: _Card_WxRegisterLogin_Handler, }, { MethodName: "CreateCard", Handler: _Card_CreateCard_Handler, }, { MethodName: "GetCardInfo", Handler: _Card_GetCardInfo_Handler, }, { MethodName: "GetMyCards", Handler: _Card_GetMyCards_Handler, }, { MethodName: "DelCard", Handler: _Card_DelCard_Handler, }, { MethodName: "SaveCard", Handler: _Card_SaveCard_Handler, }, { MethodName: "SearchCard", Handler: _Card_SearchCard_Handler, }, { MethodName: "GetTemplates", Handler: _Card_GetTemplates_Handler, }, { MethodName: "CreateShareToken", Handler: _Card_CreateShareToken_Handler, }, { MethodName: "AddCardByShareToken", Handler: _Card_AddCardByShareToken_Handler, }, { MethodName: "OCRCard", Handler: _Card_OCRCard_Handler, }, { MethodName: "OssUpload", Handler: _Card_OssUpload_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "card/card.proto", }