2023-03-10 09:58:13 +00:00
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.8
2023-03-14 05:19:20 +00:00
// - protoc v3.21.12
// source: api/contract/contract.proto
2023-03-10 09:58:13 +00:00
2023-03-14 05:19:20 +00:00
package contract
2023-03-10 09:58:13 +00:00
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
2023-03-14 05:19:20 +00:00
// ContractClient is the client API for Contract service.
2023-03-10 09:58:13 +00:00
//
// 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.
2023-03-14 05:19:20 +00:00
type ContractClient interface {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
type contractClient struct {
2023-03-10 09:58:13 +00:00
cc * triple . TripleConn
}
2023-03-14 05:19:20 +00:00
type ContractClientImpl struct {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func ( c * ContractClientImpl ) GetDubboStub ( cc * triple . TripleConn ) ContractClient {
return NewContractClient ( cc )
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
func ( c * ContractClientImpl ) XXX_InterfaceName ( ) string {
return "contract.Contract"
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
func NewContractClient ( cc * triple . TripleConn ) ContractClient {
return & contractClient { cc }
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) RegisterPerson ( ctx context . Context , in * RegisterPersonRequest , opts ... grpc_go . CallOption ) ( * RegisterResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( RegisterResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/RegisterPerson" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) PersonVerify ( ctx context . Context , in * PersonVerifyRequest , opts ... grpc_go . CallOption ) ( * PersonVerifyResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( PersonVerifyResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/PersonVerify" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) RegisterOrg ( ctx context . Context , in * RegisterOrgRequest , opts ... grpc_go . CallOption ) ( * RegisterResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( RegisterResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/RegisterOrg" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) CompanyVerify ( ctx context . Context , in * CompanyVerifyRequest , opts ... grpc_go . CallOption ) ( * PersonVerifyResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( PersonVerifyResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CompanyVerify" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) FindPersonCertInfo ( ctx context . Context , in * FindCertInfo , opts ... grpc_go . CallOption ) ( * PersonCertInfoResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( PersonCertInfoResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/FindPersonCertInfo" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) FindCompanyCertInfo ( ctx context . Context , in * FindCertInfo , opts ... grpc_go . CallOption ) ( * CompanyCertInfoResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( CompanyCertInfoResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/FindCompanyCertInfo" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) ApplyCert ( ctx context . Context , in * ApplyCertRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( CommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ApplyCert" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) AddSignature ( ctx context . Context , in * AddSignRequest , opts ... grpc_go . CallOption ) ( * AddSignResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( AddSignResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/AddSignature" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) CustomSign ( ctx context . Context , in * CustomSignRequest , opts ... grpc_go . CallOption ) ( * CustomSignResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( CustomSignResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CustomSign" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) UploadTemplate ( ctx context . Context , in * UploadTemplateRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( CommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UploadTemplate" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) UploadDocs ( ctx context . Context , in * UploadDocsRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( CommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UploadDocs" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) GenerateContract ( ctx context . Context , in * GenerateContractRequest , opts ... grpc_go . CallOption ) ( * ViewCommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( ViewCommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/GenerateContract" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) ExtSignAuto ( ctx context . Context , in * ExtSignAutoRequest , opts ... grpc_go . CallOption ) ( * ViewCommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( ViewCommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ExtSignAuto" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) BeforeAuthSign ( ctx context . Context , in * BeforeAuthSignRequest , opts ... grpc_go . CallOption ) ( * JumpCommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( JumpCommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/BeforeAuthSign" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) ExtSign ( ctx context . Context , in * ExtSignRequest , opts ... grpc_go . CallOption ) ( * JumpCommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( JumpCommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ExtSign" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) ViewContract ( ctx context . Context , in * ContractRequest , opts ... grpc_go . CallOption ) ( * JumpCommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( JumpCommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ViewContract" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) DownLoadContract ( ctx context . Context , in * ContractRequest , opts ... grpc_go . CallOption ) ( * JumpCommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( JumpCommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/DownLoadContract" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) ContractFiling ( ctx context . Context , in * ContractRequest , opts ... grpc_go . CallOption ) ( * CommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( CommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ContractFiling" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) GetPdfTemplateKeys ( ctx context . Context , in * PdfTemplateKeysRequest , opts ... grpc_go . CallOption ) ( * PdfTemplateKeysResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( PdfTemplateKeysResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/GetPdfTemplateKeys" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) AuthStatus ( ctx context . Context , in * CustomerIdRequest , opts ... grpc_go . CallOption ) ( * AuthStatusResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( AuthStatusResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/AuthStatus" , in , out )
}
2023-03-14 05:19:20 +00:00
func ( c * contractClient ) CancelExtSignAuto ( ctx context . Context , in * CancelExtSignAutoRequest , opts ... grpc_go . CallOption ) ( * JumpCommonResponse , common . ErrorWithAttachment ) {
2023-03-10 09:58:13 +00:00
out := new ( JumpCommonResponse )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CancelExtSignAuto" , in , out )
}
2023-03-14 05:19:20 +00:00
// ContractServer is the server API for Contract service.
// All implementations must embed UnimplementedContractServer
2023-03-10 09:58:13 +00:00
// for forward compatibility
2023-03-14 05:19:20 +00:00
type ContractServer interface {
2023-03-10 09:58:13 +00:00
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 )
2023-03-14 05:19:20 +00:00
mustEmbedUnimplementedContractServer ( )
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
// UnimplementedContractServer must be embedded to have forward compatible implementations.
type UnimplementedContractServer struct {
2023-03-10 09:58:13 +00:00
proxyImpl protocol . Invoker
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) RegisterPerson ( context . Context , * RegisterPersonRequest ) ( * RegisterResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method RegisterPerson not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) PersonVerify ( context . Context , * PersonVerifyRequest ) ( * PersonVerifyResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method PersonVerify not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) RegisterOrg ( context . Context , * RegisterOrgRequest ) ( * RegisterResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method RegisterOrg not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) CompanyVerify ( context . Context , * CompanyVerifyRequest ) ( * PersonVerifyResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method CompanyVerify not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) FindPersonCertInfo ( context . Context , * FindCertInfo ) ( * PersonCertInfoResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method FindPersonCertInfo not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) FindCompanyCertInfo ( context . Context , * FindCertInfo ) ( * CompanyCertInfoResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method FindCompanyCertInfo not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) ApplyCert ( context . Context , * ApplyCertRequest ) ( * CommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ApplyCert not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) AddSignature ( context . Context , * AddSignRequest ) ( * AddSignResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method AddSignature not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) CustomSign ( context . Context , * CustomSignRequest ) ( * CustomSignResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method CustomSign not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) UploadTemplate ( context . Context , * UploadTemplateRequest ) ( * CommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method UploadTemplate not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) UploadDocs ( context . Context , * UploadDocsRequest ) ( * CommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method UploadDocs not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) GenerateContract ( context . Context , * GenerateContractRequest ) ( * ViewCommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method GenerateContract not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) ExtSignAuto ( context . Context , * ExtSignAutoRequest ) ( * ViewCommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ExtSignAuto not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) BeforeAuthSign ( context . Context , * BeforeAuthSignRequest ) ( * JumpCommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method BeforeAuthSign not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) ExtSign ( context . Context , * ExtSignRequest ) ( * JumpCommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ExtSign not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) ViewContract ( context . Context , * ContractRequest ) ( * JumpCommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ViewContract not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) DownLoadContract ( context . Context , * ContractRequest ) ( * JumpCommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method DownLoadContract not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) ContractFiling ( context . Context , * ContractRequest ) ( * CommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method ContractFiling not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) GetPdfTemplateKeys ( context . Context , * PdfTemplateKeysRequest ) ( * PdfTemplateKeysResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method GetPdfTemplateKeys not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) AuthStatus ( context . Context , * CustomerIdRequest ) ( * AuthStatusResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method AuthStatus not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) CancelExtSignAuto ( context . Context , * CancelExtSignAutoRequest ) ( * JumpCommonResponse , error ) {
2023-03-10 09:58:13 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method CancelExtSignAuto not implemented" )
}
2023-03-14 05:19:20 +00:00
func ( s * UnimplementedContractServer ) XXX_SetProxyImpl ( impl protocol . Invoker ) {
2023-03-10 09:58:13 +00:00
s . proxyImpl = impl
}
2023-03-14 05:19:20 +00:00
func ( s * UnimplementedContractServer ) XXX_GetProxyImpl ( ) protocol . Invoker {
2023-03-10 09:58:13 +00:00
return s . proxyImpl
}
2023-03-14 05:19:20 +00:00
func ( s * UnimplementedContractServer ) XXX_ServiceDesc ( ) * grpc_go . ServiceDesc {
return & Contract_ServiceDesc
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
func ( s * UnimplementedContractServer ) XXX_InterfaceName ( ) string {
return "contract.Contract"
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
func ( UnimplementedContractServer ) mustEmbedUnimplementedContractServer ( ) { }
2023-03-10 09:58:13 +00:00
2023-03-14 05:19:20 +00:00
// UnsafeContractServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ContractServer will
2023-03-10 09:58:13 +00:00
// result in compilation errors.
2023-03-14 05:19:20 +00:00
type UnsafeContractServer interface {
mustEmbedUnimplementedContractServer ( )
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
func RegisterContractServer ( s grpc_go . ServiceRegistrar , srv ContractServer ) {
s . RegisterService ( & Contract_ServiceDesc , srv )
2023-03-10 09:58:13 +00:00
}
2023-03-14 05:19:20 +00:00
func _Contract_RegisterPerson_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_PersonVerify_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_RegisterOrg_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_CompanyVerify_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_FindPersonCertInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_FindCompanyCertInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_ApplyCert_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_AddSignature_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_CustomSign_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_UploadTemplate_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_UploadDocs_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_GenerateContract_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_ExtSignAuto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_BeforeAuthSign_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_ExtSign_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_ViewContract_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_DownLoadContract_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_ContractFiling_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_GetPdfTemplateKeys_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_AuthStatus_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
func _Contract_CancelExtSignAuto_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
2023-03-10 09:58:13 +00:00
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 )
}
2023-03-14 05:19:20 +00:00
// Contract_ServiceDesc is the grpc_go.ServiceDesc for Contract service.
2023-03-10 09:58:13 +00:00
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
2023-03-14 05:19:20 +00:00
var Contract_ServiceDesc = grpc_go . ServiceDesc {
ServiceName : "contract.Contract" ,
HandlerType : ( * ContractServer ) ( nil ) ,
2023-03-10 09:58:13 +00:00
Methods : [ ] grpc_go . MethodDesc {
{
MethodName : "RegisterPerson" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_RegisterPerson_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "PersonVerify" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_PersonVerify_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "RegisterOrg" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_RegisterOrg_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "CompanyVerify" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_CompanyVerify_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "FindPersonCertInfo" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_FindPersonCertInfo_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "FindCompanyCertInfo" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_FindCompanyCertInfo_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "ApplyCert" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_ApplyCert_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "AddSignature" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_AddSignature_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "CustomSign" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_CustomSign_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "UploadTemplate" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_UploadTemplate_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "UploadDocs" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_UploadDocs_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "GenerateContract" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_GenerateContract_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "ExtSignAuto" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_ExtSignAuto_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "BeforeAuthSign" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_BeforeAuthSign_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "ExtSign" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_ExtSign_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "ViewContract" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_ViewContract_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "DownLoadContract" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_DownLoadContract_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "ContractFiling" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_ContractFiling_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "GetPdfTemplateKeys" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_GetPdfTemplateKeys_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "AuthStatus" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_AuthStatus_Handler ,
2023-03-10 09:58:13 +00:00
} ,
{
MethodName : "CancelExtSignAuto" ,
2023-03-14 05:19:20 +00:00
Handler : _Contract_CancelExtSignAuto_Handler ,
2023-03-10 09:58:13 +00:00
} ,
} ,
Streams : [ ] grpc_go . StreamDesc { } ,
2023-03-14 05:19:20 +00:00
Metadata : "api/contract/contract.proto" ,
2023-03-10 09:58:13 +00:00
}