1048 lines
45 KiB
Go
1048 lines
45 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: contract.proto
|
||
|
|
||
|
package contractMicroservice
|
||
|
|
||
|
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
|
||
|
|
||
|
// ContractMicroserviceClient is the client API for ContractMicroservice 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 ContractMicroserviceClient interface {
|
||
|
RegisterPerson(ctx context.Context, in *RegisterPersonRequest, opts ...grpc_go.CallOption) (*RegisterResponse, common.ErrorWithAttachment)
|
||
|
PersonVerify(ctx context.Context, in *PersonVerifyRequest, opts ...grpc_go.CallOption) (*PersonVerifyResponse, common.ErrorWithAttachment)
|
||
|
RegisterOrg(ctx context.Context, in *RegisterOrgRequest, opts ...grpc_go.CallOption) (*RegisterResponse, common.ErrorWithAttachment)
|
||
|
CompanyVerify(ctx context.Context, in *CompanyVerifyRequest, opts ...grpc_go.CallOption) (*PersonVerifyResponse, common.ErrorWithAttachment)
|
||
|
FindPersonCertInfo(ctx context.Context, in *FindCertInfo, opts ...grpc_go.CallOption) (*PersonCertInfoResponse, common.ErrorWithAttachment)
|
||
|
FindCompanyCertInfo(ctx context.Context, in *FindCertInfo, opts ...grpc_go.CallOption) (*CompanyCertInfoResponse, common.ErrorWithAttachment)
|
||
|
ApplyCert(ctx context.Context, in *ApplyCertRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
||
|
AddSignature(ctx context.Context, in *AddSignRequest, opts ...grpc_go.CallOption) (*AddSignResponse, common.ErrorWithAttachment)
|
||
|
CustomSign(ctx context.Context, in *CustomSignRequest, opts ...grpc_go.CallOption) (*CustomSignResponse, common.ErrorWithAttachment)
|
||
|
UploadTemplate(ctx context.Context, in *UploadTemplateRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
||
|
UploadDocs(ctx context.Context, in *UploadDocsRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
||
|
GenerateContract(ctx context.Context, in *GenerateContractRequest, opts ...grpc_go.CallOption) (*ViewCommonResponse, common.ErrorWithAttachment)
|
||
|
ExtSignAuto(ctx context.Context, in *ExtSignAutoRequest, opts ...grpc_go.CallOption) (*ViewCommonResponse, common.ErrorWithAttachment)
|
||
|
BeforeAuthSign(ctx context.Context, in *BeforeAuthSignRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment)
|
||
|
ExtSign(ctx context.Context, in *ExtSignRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment)
|
||
|
ViewContract(ctx context.Context, in *ContractRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment)
|
||
|
DownLoadContract(ctx context.Context, in *ContractRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment)
|
||
|
ContractFiling(ctx context.Context, in *ContractRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment)
|
||
|
GetPdfTemplateKeys(ctx context.Context, in *PdfTemplateKeysRequest, opts ...grpc_go.CallOption) (*PdfTemplateKeysResponse, common.ErrorWithAttachment)
|
||
|
AuthStatus(ctx context.Context, in *CustomerIdRequest, opts ...grpc_go.CallOption) (*AuthStatusResponse, common.ErrorWithAttachment)
|
||
|
CancelExtSignAuto(ctx context.Context, in *CancelExtSignAutoRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment)
|
||
|
}
|
||
|
|
||
|
type contractMicroserviceClient struct {
|
||
|
cc *triple.TripleConn
|
||
|
}
|
||
|
|
||
|
type ContractMicroserviceClientImpl struct {
|
||
|
RegisterPerson func(ctx context.Context, in *RegisterPersonRequest) (*RegisterResponse, error)
|
||
|
PersonVerify func(ctx context.Context, in *PersonVerifyRequest) (*PersonVerifyResponse, error)
|
||
|
RegisterOrg func(ctx context.Context, in *RegisterOrgRequest) (*RegisterResponse, error)
|
||
|
CompanyVerify func(ctx context.Context, in *CompanyVerifyRequest) (*PersonVerifyResponse, error)
|
||
|
FindPersonCertInfo func(ctx context.Context, in *FindCertInfo) (*PersonCertInfoResponse, error)
|
||
|
FindCompanyCertInfo func(ctx context.Context, in *FindCertInfo) (*CompanyCertInfoResponse, error)
|
||
|
ApplyCert func(ctx context.Context, in *ApplyCertRequest) (*CommonResponse, error)
|
||
|
AddSignature func(ctx context.Context, in *AddSignRequest) (*AddSignResponse, error)
|
||
|
CustomSign func(ctx context.Context, in *CustomSignRequest) (*CustomSignResponse, error)
|
||
|
UploadTemplate func(ctx context.Context, in *UploadTemplateRequest) (*CommonResponse, error)
|
||
|
UploadDocs func(ctx context.Context, in *UploadDocsRequest) (*CommonResponse, error)
|
||
|
GenerateContract func(ctx context.Context, in *GenerateContractRequest) (*ViewCommonResponse, error)
|
||
|
ExtSignAuto func(ctx context.Context, in *ExtSignAutoRequest) (*ViewCommonResponse, error)
|
||
|
BeforeAuthSign func(ctx context.Context, in *BeforeAuthSignRequest) (*JumpCommonResponse, error)
|
||
|
ExtSign func(ctx context.Context, in *ExtSignRequest) (*JumpCommonResponse, error)
|
||
|
ViewContract func(ctx context.Context, in *ContractRequest) (*JumpCommonResponse, error)
|
||
|
DownLoadContract func(ctx context.Context, in *ContractRequest) (*JumpCommonResponse, error)
|
||
|
ContractFiling func(ctx context.Context, in *ContractRequest) (*CommonResponse, error)
|
||
|
GetPdfTemplateKeys func(ctx context.Context, in *PdfTemplateKeysRequest) (*PdfTemplateKeysResponse, error)
|
||
|
AuthStatus func(ctx context.Context, in *CustomerIdRequest) (*AuthStatusResponse, error)
|
||
|
CancelExtSignAuto func(ctx context.Context, in *CancelExtSignAutoRequest) (*JumpCommonResponse, error)
|
||
|
}
|
||
|
|
||
|
func (c *ContractMicroserviceClientImpl) GetDubboStub(cc *triple.TripleConn) ContractMicroserviceClient {
|
||
|
return NewContractMicroserviceClient(cc)
|
||
|
}
|
||
|
|
||
|
func (c *ContractMicroserviceClientImpl) XXX_InterfaceName() string {
|
||
|
return "contractMicroservice.ContractMicroservice"
|
||
|
}
|
||
|
|
||
|
func NewContractMicroserviceClient(cc *triple.TripleConn) ContractMicroserviceClient {
|
||
|
return &contractMicroserviceClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) RegisterPerson(ctx context.Context, in *RegisterPersonRequest, opts ...grpc_go.CallOption) (*RegisterResponse, common.ErrorWithAttachment) {
|
||
|
out := new(RegisterResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/RegisterPerson", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) PersonVerify(ctx context.Context, in *PersonVerifyRequest, opts ...grpc_go.CallOption) (*PersonVerifyResponse, common.ErrorWithAttachment) {
|
||
|
out := new(PersonVerifyResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/PersonVerify", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) RegisterOrg(ctx context.Context, in *RegisterOrgRequest, opts ...grpc_go.CallOption) (*RegisterResponse, common.ErrorWithAttachment) {
|
||
|
out := new(RegisterResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/RegisterOrg", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) CompanyVerify(ctx context.Context, in *CompanyVerifyRequest, opts ...grpc_go.CallOption) (*PersonVerifyResponse, common.ErrorWithAttachment) {
|
||
|
out := new(PersonVerifyResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CompanyVerify", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) FindPersonCertInfo(ctx context.Context, in *FindCertInfo, opts ...grpc_go.CallOption) (*PersonCertInfoResponse, common.ErrorWithAttachment) {
|
||
|
out := new(PersonCertInfoResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/FindPersonCertInfo", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) FindCompanyCertInfo(ctx context.Context, in *FindCertInfo, opts ...grpc_go.CallOption) (*CompanyCertInfoResponse, common.ErrorWithAttachment) {
|
||
|
out := new(CompanyCertInfoResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/FindCompanyCertInfo", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) ApplyCert(ctx context.Context, in *ApplyCertRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(CommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ApplyCert", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) AddSignature(ctx context.Context, in *AddSignRequest, opts ...grpc_go.CallOption) (*AddSignResponse, common.ErrorWithAttachment) {
|
||
|
out := new(AddSignResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/AddSignature", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) CustomSign(ctx context.Context, in *CustomSignRequest, opts ...grpc_go.CallOption) (*CustomSignResponse, common.ErrorWithAttachment) {
|
||
|
out := new(CustomSignResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CustomSign", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) UploadTemplate(ctx context.Context, in *UploadTemplateRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(CommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UploadTemplate", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) UploadDocs(ctx context.Context, in *UploadDocsRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(CommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/UploadDocs", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) GenerateContract(ctx context.Context, in *GenerateContractRequest, opts ...grpc_go.CallOption) (*ViewCommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(ViewCommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GenerateContract", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) ExtSignAuto(ctx context.Context, in *ExtSignAutoRequest, opts ...grpc_go.CallOption) (*ViewCommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(ViewCommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ExtSignAuto", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) BeforeAuthSign(ctx context.Context, in *BeforeAuthSignRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(JumpCommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BeforeAuthSign", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) ExtSign(ctx context.Context, in *ExtSignRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(JumpCommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ExtSign", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) ViewContract(ctx context.Context, in *ContractRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(JumpCommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ViewContract", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) DownLoadContract(ctx context.Context, in *ContractRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(JumpCommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DownLoadContract", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) ContractFiling(ctx context.Context, in *ContractRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(CommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ContractFiling", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) GetPdfTemplateKeys(ctx context.Context, in *PdfTemplateKeysRequest, opts ...grpc_go.CallOption) (*PdfTemplateKeysResponse, common.ErrorWithAttachment) {
|
||
|
out := new(PdfTemplateKeysResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetPdfTemplateKeys", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) AuthStatus(ctx context.Context, in *CustomerIdRequest, opts ...grpc_go.CallOption) (*AuthStatusResponse, common.ErrorWithAttachment) {
|
||
|
out := new(AuthStatusResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/AuthStatus", in, out)
|
||
|
}
|
||
|
|
||
|
func (c *contractMicroserviceClient) CancelExtSignAuto(ctx context.Context, in *CancelExtSignAutoRequest, opts ...grpc_go.CallOption) (*JumpCommonResponse, common.ErrorWithAttachment) {
|
||
|
out := new(JumpCommonResponse)
|
||
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/CancelExtSignAuto", in, out)
|
||
|
}
|
||
|
|
||
|
// ContractMicroserviceServer is the server API for ContractMicroservice service.
|
||
|
// All implementations must embed UnimplementedContractMicroserviceServer
|
||
|
// for forward compatibility
|
||
|
type ContractMicroserviceServer interface {
|
||
|
RegisterPerson(context.Context, *RegisterPersonRequest) (*RegisterResponse, error)
|
||
|
PersonVerify(context.Context, *PersonVerifyRequest) (*PersonVerifyResponse, error)
|
||
|
RegisterOrg(context.Context, *RegisterOrgRequest) (*RegisterResponse, error)
|
||
|
CompanyVerify(context.Context, *CompanyVerifyRequest) (*PersonVerifyResponse, error)
|
||
|
FindPersonCertInfo(context.Context, *FindCertInfo) (*PersonCertInfoResponse, error)
|
||
|
FindCompanyCertInfo(context.Context, *FindCertInfo) (*CompanyCertInfoResponse, error)
|
||
|
ApplyCert(context.Context, *ApplyCertRequest) (*CommonResponse, error)
|
||
|
AddSignature(context.Context, *AddSignRequest) (*AddSignResponse, error)
|
||
|
CustomSign(context.Context, *CustomSignRequest) (*CustomSignResponse, error)
|
||
|
UploadTemplate(context.Context, *UploadTemplateRequest) (*CommonResponse, error)
|
||
|
UploadDocs(context.Context, *UploadDocsRequest) (*CommonResponse, error)
|
||
|
GenerateContract(context.Context, *GenerateContractRequest) (*ViewCommonResponse, error)
|
||
|
ExtSignAuto(context.Context, *ExtSignAutoRequest) (*ViewCommonResponse, error)
|
||
|
BeforeAuthSign(context.Context, *BeforeAuthSignRequest) (*JumpCommonResponse, error)
|
||
|
ExtSign(context.Context, *ExtSignRequest) (*JumpCommonResponse, error)
|
||
|
ViewContract(context.Context, *ContractRequest) (*JumpCommonResponse, error)
|
||
|
DownLoadContract(context.Context, *ContractRequest) (*JumpCommonResponse, error)
|
||
|
ContractFiling(context.Context, *ContractRequest) (*CommonResponse, error)
|
||
|
GetPdfTemplateKeys(context.Context, *PdfTemplateKeysRequest) (*PdfTemplateKeysResponse, error)
|
||
|
AuthStatus(context.Context, *CustomerIdRequest) (*AuthStatusResponse, error)
|
||
|
CancelExtSignAuto(context.Context, *CancelExtSignAutoRequest) (*JumpCommonResponse, error)
|
||
|
mustEmbedUnimplementedContractMicroserviceServer()
|
||
|
}
|
||
|
|
||
|
// UnimplementedContractMicroserviceServer must be embedded to have forward compatible implementations.
|
||
|
type UnimplementedContractMicroserviceServer struct {
|
||
|
proxyImpl protocol.Invoker
|
||
|
}
|
||
|
|
||
|
func (UnimplementedContractMicroserviceServer) RegisterPerson(context.Context, *RegisterPersonRequest) (*RegisterResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method RegisterPerson not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) PersonVerify(context.Context, *PersonVerifyRequest) (*PersonVerifyResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method PersonVerify not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) RegisterOrg(context.Context, *RegisterOrgRequest) (*RegisterResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method RegisterOrg not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) CompanyVerify(context.Context, *CompanyVerifyRequest) (*PersonVerifyResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method CompanyVerify not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) FindPersonCertInfo(context.Context, *FindCertInfo) (*PersonCertInfoResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method FindPersonCertInfo not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) FindCompanyCertInfo(context.Context, *FindCertInfo) (*CompanyCertInfoResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method FindCompanyCertInfo not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) ApplyCert(context.Context, *ApplyCertRequest) (*CommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method ApplyCert not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) AddSignature(context.Context, *AddSignRequest) (*AddSignResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method AddSignature not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) CustomSign(context.Context, *CustomSignRequest) (*CustomSignResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method CustomSign not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) UploadTemplate(context.Context, *UploadTemplateRequest) (*CommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method UploadTemplate not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) UploadDocs(context.Context, *UploadDocsRequest) (*CommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method UploadDocs not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) GenerateContract(context.Context, *GenerateContractRequest) (*ViewCommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method GenerateContract not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) ExtSignAuto(context.Context, *ExtSignAutoRequest) (*ViewCommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method ExtSignAuto not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) BeforeAuthSign(context.Context, *BeforeAuthSignRequest) (*JumpCommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method BeforeAuthSign not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) ExtSign(context.Context, *ExtSignRequest) (*JumpCommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method ExtSign not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) ViewContract(context.Context, *ContractRequest) (*JumpCommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method ViewContract not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) DownLoadContract(context.Context, *ContractRequest) (*JumpCommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method DownLoadContract not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) ContractFiling(context.Context, *ContractRequest) (*CommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method ContractFiling not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) GetPdfTemplateKeys(context.Context, *PdfTemplateKeysRequest) (*PdfTemplateKeysResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method GetPdfTemplateKeys not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) AuthStatus(context.Context, *CustomerIdRequest) (*AuthStatusResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method AuthStatus not implemented")
|
||
|
}
|
||
|
func (UnimplementedContractMicroserviceServer) CancelExtSignAuto(context.Context, *CancelExtSignAutoRequest) (*JumpCommonResponse, error) {
|
||
|
return nil, status.Errorf(codes.Unimplemented, "method CancelExtSignAuto not implemented")
|
||
|
}
|
||
|
func (s *UnimplementedContractMicroserviceServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
||
|
s.proxyImpl = impl
|
||
|
}
|
||
|
|
||
|
func (s *UnimplementedContractMicroserviceServer) XXX_GetProxyImpl() protocol.Invoker {
|
||
|
return s.proxyImpl
|
||
|
}
|
||
|
|
||
|
func (s *UnimplementedContractMicroserviceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc {
|
||
|
return &ContractMicroservice_ServiceDesc
|
||
|
}
|
||
|
func (s *UnimplementedContractMicroserviceServer) XXX_InterfaceName() string {
|
||
|
return "contractMicroservice.ContractMicroservice"
|
||
|
}
|
||
|
|
||
|
func (UnimplementedContractMicroserviceServer) mustEmbedUnimplementedContractMicroserviceServer() {}
|
||
|
|
||
|
// UnsafeContractMicroserviceServer may be embedded to opt out of forward compatibility for this service.
|
||
|
// Use of this interface is not recommended, as added methods to ContractMicroserviceServer will
|
||
|
// result in compilation errors.
|
||
|
type UnsafeContractMicroserviceServer interface {
|
||
|
mustEmbedUnimplementedContractMicroserviceServer()
|
||
|
}
|
||
|
|
||
|
func RegisterContractMicroserviceServer(s grpc_go.ServiceRegistrar, srv ContractMicroserviceServer) {
|
||
|
s.RegisterService(&ContractMicroservice_ServiceDesc, srv)
|
||
|
}
|
||
|
|
||
|
func _ContractMicroservice_RegisterPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(RegisterPersonRequest)
|
||
|
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("RegisterPerson", 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 _ContractMicroservice_PersonVerify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(PersonVerifyRequest)
|
||
|
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("PersonVerify", 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 _ContractMicroservice_RegisterOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(RegisterOrgRequest)
|
||
|
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("RegisterOrg", 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 _ContractMicroservice_CompanyVerify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(CompanyVerifyRequest)
|
||
|
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("CompanyVerify", 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 _ContractMicroservice_FindPersonCertInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(FindCertInfo)
|
||
|
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("FindPersonCertInfo", 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 _ContractMicroservice_FindCompanyCertInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(FindCertInfo)
|
||
|
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("FindCompanyCertInfo", 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 _ContractMicroservice_ApplyCert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ApplyCertRequest)
|
||
|
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("ApplyCert", 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 _ContractMicroservice_AddSignature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(AddSignRequest)
|
||
|
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("AddSignature", 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 _ContractMicroservice_CustomSign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(CustomSignRequest)
|
||
|
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("CustomSign", 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 _ContractMicroservice_UploadTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(UploadTemplateRequest)
|
||
|
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("UploadTemplate", 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 _ContractMicroservice_UploadDocs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(UploadDocsRequest)
|
||
|
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("UploadDocs", 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 _ContractMicroservice_GenerateContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(GenerateContractRequest)
|
||
|
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("GenerateContract", 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 _ContractMicroservice_ExtSignAuto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ExtSignAutoRequest)
|
||
|
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("ExtSignAuto", 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 _ContractMicroservice_BeforeAuthSign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(BeforeAuthSignRequest)
|
||
|
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("BeforeAuthSign", 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 _ContractMicroservice_ExtSign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ExtSignRequest)
|
||
|
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("ExtSign", 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 _ContractMicroservice_ViewContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ContractRequest)
|
||
|
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("ViewContract", 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 _ContractMicroservice_DownLoadContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ContractRequest)
|
||
|
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("DownLoadContract", 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 _ContractMicroservice_ContractFiling_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(ContractRequest)
|
||
|
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("ContractFiling", 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 _ContractMicroservice_GetPdfTemplateKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(PdfTemplateKeysRequest)
|
||
|
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("GetPdfTemplateKeys", 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 _ContractMicroservice_AuthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(CustomerIdRequest)
|
||
|
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("AuthStatus", 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 _ContractMicroservice_CancelExtSignAuto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(CancelExtSignAutoRequest)
|
||
|
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("CancelExtSignAuto", 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)
|
||
|
}
|
||
|
|
||
|
// ContractMicroservice_ServiceDesc is the grpc_go.ServiceDesc for ContractMicroservice service.
|
||
|
// It's only intended for direct use with grpc_go.RegisterService,
|
||
|
// and not to be introspected or modified (even as a copy)
|
||
|
var ContractMicroservice_ServiceDesc = grpc_go.ServiceDesc{
|
||
|
ServiceName: "contractMicroservice.ContractMicroservice",
|
||
|
HandlerType: (*ContractMicroserviceServer)(nil),
|
||
|
Methods: []grpc_go.MethodDesc{
|
||
|
{
|
||
|
MethodName: "RegisterPerson",
|
||
|
Handler: _ContractMicroservice_RegisterPerson_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "PersonVerify",
|
||
|
Handler: _ContractMicroservice_PersonVerify_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "RegisterOrg",
|
||
|
Handler: _ContractMicroservice_RegisterOrg_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "CompanyVerify",
|
||
|
Handler: _ContractMicroservice_CompanyVerify_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "FindPersonCertInfo",
|
||
|
Handler: _ContractMicroservice_FindPersonCertInfo_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "FindCompanyCertInfo",
|
||
|
Handler: _ContractMicroservice_FindCompanyCertInfo_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "ApplyCert",
|
||
|
Handler: _ContractMicroservice_ApplyCert_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "AddSignature",
|
||
|
Handler: _ContractMicroservice_AddSignature_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "CustomSign",
|
||
|
Handler: _ContractMicroservice_CustomSign_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "UploadTemplate",
|
||
|
Handler: _ContractMicroservice_UploadTemplate_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "UploadDocs",
|
||
|
Handler: _ContractMicroservice_UploadDocs_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "GenerateContract",
|
||
|
Handler: _ContractMicroservice_GenerateContract_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "ExtSignAuto",
|
||
|
Handler: _ContractMicroservice_ExtSignAuto_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "BeforeAuthSign",
|
||
|
Handler: _ContractMicroservice_BeforeAuthSign_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "ExtSign",
|
||
|
Handler: _ContractMicroservice_ExtSign_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "ViewContract",
|
||
|
Handler: _ContractMicroservice_ViewContract_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "DownLoadContract",
|
||
|
Handler: _ContractMicroservice_DownLoadContract_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "ContractFiling",
|
||
|
Handler: _ContractMicroservice_ContractFiling_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "GetPdfTemplateKeys",
|
||
|
Handler: _ContractMicroservice_GetPdfTemplateKeys_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "AuthStatus",
|
||
|
Handler: _ContractMicroservice_AuthStatus_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "CancelExtSignAuto",
|
||
|
Handler: _ContractMicroservice_CancelExtSignAuto_Handler,
|
||
|
},
|
||
|
},
|
||
|
Streams: []grpc_go.StreamDesc{},
|
||
|
Metadata: "contract.proto",
|
||
|
}
|