2022-09-21 06:30:52 +00:00
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.8
2022-09-22 06:23:56 +00:00
// - protoc v3.21.4
// source: pb/artshow.proto
2022-09-21 06:30:52 +00:00
package artShow
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
// ArtShowClient is the client API for ArtShow 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 ArtShowClient interface {
CreateShow ( ctx context . Context , in * SaveShowReq , opts ... grpc_go . CallOption ) ( * SaveShowRes , common . ErrorWithAttachment )
UpdateShow ( ctx context . Context , in * SaveShowReq , opts ... grpc_go . CallOption ) ( * SaveShowRes , common . ErrorWithAttachment )
DelShow ( ctx context . Context , in * DelShowReq , opts ... grpc_go . CallOption ) ( * CommonRes , common . ErrorWithAttachment )
ShowList ( ctx context . Context , in * ShowListReq , opts ... grpc_go . CallOption ) ( * ShowListRes , common . ErrorWithAttachment )
ShowInfo ( ctx context . Context , in * ShowDetailReq , opts ... grpc_go . CallOption ) ( * ShowArtworkDetailRes , common . ErrorWithAttachment )
ShowStatisticalInfo ( ctx context . Context , in * ShowStatisticalInfoReq , opts ... grpc_go . CallOption ) ( * ShowStatisticalInfoRes , common . ErrorWithAttachment )
ArtworkPrice ( ctx context . Context , in * ArtworkPriceReq , opts ... grpc_go . CallOption ) ( * ArtworkPriceRes , common . ErrorWithAttachment )
CreateApply ( ctx context . Context , in * SaveApplyReq , opts ... grpc_go . CallOption ) ( * SaveApplyRes , common . ErrorWithAttachment )
UpdateApply ( ctx context . Context , in * SaveApplyReq , opts ... grpc_go . CallOption ) ( * SaveApplyRes , common . ErrorWithAttachment )
DelApply ( ctx context . Context , in * DelApplyReq , opts ... grpc_go . CallOption ) ( * CommonRes , common . ErrorWithAttachment )
ShowListWithApply ( ctx context . Context , in * ShowListReq , opts ... grpc_go . CallOption ) ( * ShowListRes , common . ErrorWithAttachment )
UpdateApplyStatus ( ctx context . Context , in * UpdateApplyStatusReq , opts ... grpc_go . CallOption ) ( * CommonRes , common . ErrorWithAttachment )
ApplyList ( ctx context . Context , in * ApplyListReq , opts ... grpc_go . CallOption ) ( * ApplyListRes , common . ErrorWithAttachment )
ApplyDetail ( ctx context . Context , in * ApplyShowReq , opts ... grpc_go . CallOption ) ( * ApplyShowRes , common . ErrorWithAttachment )
}
type artShowClient struct {
cc * triple . TripleConn
}
type ArtShowClientImpl struct {
CreateShow func ( ctx context . Context , in * SaveShowReq ) ( * SaveShowRes , error )
UpdateShow func ( ctx context . Context , in * SaveShowReq ) ( * SaveShowRes , error )
DelShow func ( ctx context . Context , in * DelShowReq ) ( * CommonRes , error )
ShowList func ( ctx context . Context , in * ShowListReq ) ( * ShowListRes , error )
ShowInfo func ( ctx context . Context , in * ShowDetailReq ) ( * ShowArtworkDetailRes , error )
ShowStatisticalInfo func ( ctx context . Context , in * ShowStatisticalInfoReq ) ( * ShowStatisticalInfoRes , error )
ArtworkPrice func ( ctx context . Context , in * ArtworkPriceReq ) ( * ArtworkPriceRes , error )
CreateApply func ( ctx context . Context , in * SaveApplyReq ) ( * SaveApplyRes , error )
UpdateApply func ( ctx context . Context , in * SaveApplyReq ) ( * SaveApplyRes , error )
DelApply func ( ctx context . Context , in * DelApplyReq ) ( * CommonRes , error )
ShowListWithApply func ( ctx context . Context , in * ShowListReq ) ( * ShowListRes , error )
UpdateApplyStatus func ( ctx context . Context , in * UpdateApplyStatusReq ) ( * CommonRes , error )
ApplyList func ( ctx context . Context , in * ApplyListReq ) ( * ApplyListRes , error )
ApplyDetail func ( ctx context . Context , in * ApplyShowReq ) ( * ApplyShowRes , error )
}
func ( c * ArtShowClientImpl ) GetDubboStub ( cc * triple . TripleConn ) ArtShowClient {
return NewArtShowClient ( cc )
}
func ( c * ArtShowClientImpl ) XXX_InterfaceName ( ) string {
return "ArtShow.ArtShow"
}
func NewArtShowClient ( cc * triple . TripleConn ) ArtShowClient {
return & artShowClient { cc }
}
func ( c * artShowClient ) CreateShow ( ctx context . Context , in * SaveShowReq , opts ... grpc_go . CallOption ) ( * SaveShowRes , common . ErrorWithAttachment ) {
out := new ( SaveShowRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CreateShow" , in , out )
}
func ( c * artShowClient ) UpdateShow ( ctx context . Context , in * SaveShowReq , opts ... grpc_go . CallOption ) ( * SaveShowRes , common . ErrorWithAttachment ) {
out := new ( SaveShowRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UpdateShow" , in , out )
}
func ( c * artShowClient ) DelShow ( ctx context . Context , in * DelShowReq , opts ... grpc_go . CallOption ) ( * CommonRes , common . ErrorWithAttachment ) {
out := new ( CommonRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/DelShow" , in , out )
}
func ( c * artShowClient ) ShowList ( ctx context . Context , in * ShowListReq , opts ... grpc_go . CallOption ) ( * ShowListRes , common . ErrorWithAttachment ) {
out := new ( ShowListRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ShowList" , in , out )
}
func ( c * artShowClient ) ShowInfo ( ctx context . Context , in * ShowDetailReq , opts ... grpc_go . CallOption ) ( * ShowArtworkDetailRes , common . ErrorWithAttachment ) {
out := new ( ShowArtworkDetailRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ShowInfo" , in , out )
}
func ( c * artShowClient ) ShowStatisticalInfo ( ctx context . Context , in * ShowStatisticalInfoReq , opts ... grpc_go . CallOption ) ( * ShowStatisticalInfoRes , common . ErrorWithAttachment ) {
out := new ( ShowStatisticalInfoRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ShowStatisticalInfo" , in , out )
}
func ( c * artShowClient ) ArtworkPrice ( ctx context . Context , in * ArtworkPriceReq , opts ... grpc_go . CallOption ) ( * ArtworkPriceRes , common . ErrorWithAttachment ) {
out := new ( ArtworkPriceRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ArtworkPrice" , in , out )
}
func ( c * artShowClient ) CreateApply ( ctx context . Context , in * SaveApplyReq , opts ... grpc_go . CallOption ) ( * SaveApplyRes , common . ErrorWithAttachment ) {
out := new ( SaveApplyRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/CreateApply" , in , out )
}
func ( c * artShowClient ) UpdateApply ( ctx context . Context , in * SaveApplyReq , opts ... grpc_go . CallOption ) ( * SaveApplyRes , common . ErrorWithAttachment ) {
out := new ( SaveApplyRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UpdateApply" , in , out )
}
func ( c * artShowClient ) DelApply ( ctx context . Context , in * DelApplyReq , opts ... grpc_go . CallOption ) ( * CommonRes , common . ErrorWithAttachment ) {
out := new ( CommonRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/DelApply" , in , out )
}
func ( c * artShowClient ) ShowListWithApply ( ctx context . Context , in * ShowListReq , opts ... grpc_go . CallOption ) ( * ShowListRes , common . ErrorWithAttachment ) {
out := new ( ShowListRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ShowListWithApply" , in , out )
}
func ( c * artShowClient ) UpdateApplyStatus ( ctx context . Context , in * UpdateApplyStatusReq , opts ... grpc_go . CallOption ) ( * CommonRes , common . ErrorWithAttachment ) {
out := new ( CommonRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/UpdateApplyStatus" , in , out )
}
func ( c * artShowClient ) ApplyList ( ctx context . Context , in * ApplyListReq , opts ... grpc_go . CallOption ) ( * ApplyListRes , common . ErrorWithAttachment ) {
out := new ( ApplyListRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ApplyList" , in , out )
}
func ( c * artShowClient ) ApplyDetail ( ctx context . Context , in * ApplyShowReq , opts ... grpc_go . CallOption ) ( * ApplyShowRes , common . ErrorWithAttachment ) {
out := new ( ApplyShowRes )
interfaceKey := ctx . Value ( constant . InterfaceKey ) . ( string )
return out , c . cc . Invoke ( ctx , "/" + interfaceKey + "/ApplyDetail" , in , out )
}
// ArtShowServer is the server API for ArtShow service.
// All implementations must embed UnimplementedArtShowServer
// for forward compatibility
type ArtShowServer interface {
CreateShow ( context . Context , * SaveShowReq ) ( * SaveShowRes , error )
UpdateShow ( context . Context , * SaveShowReq ) ( * SaveShowRes , error )
DelShow ( context . Context , * DelShowReq ) ( * CommonRes , error )
ShowList ( context . Context , * ShowListReq ) ( * ShowListRes , error )
ShowInfo ( context . Context , * ShowDetailReq ) ( * ShowArtworkDetailRes , error )
ShowStatisticalInfo ( context . Context , * ShowStatisticalInfoReq ) ( * ShowStatisticalInfoRes , error )
ArtworkPrice ( context . Context , * ArtworkPriceReq ) ( * ArtworkPriceRes , error )
CreateApply ( context . Context , * SaveApplyReq ) ( * SaveApplyRes , error )
UpdateApply ( context . Context , * SaveApplyReq ) ( * SaveApplyRes , error )
DelApply ( context . Context , * DelApplyReq ) ( * CommonRes , error )
ShowListWithApply ( context . Context , * ShowListReq ) ( * ShowListRes , error )
UpdateApplyStatus ( context . Context , * UpdateApplyStatusReq ) ( * CommonRes , error )
ApplyList ( context . Context , * ApplyListReq ) ( * ApplyListRes , error )
ApplyDetail ( context . Context , * ApplyShowReq ) ( * ApplyShowRes , error )
mustEmbedUnimplementedArtShowServer ( )
}
// UnimplementedArtShowServer must be embedded to have forward compatible implementations.
type UnimplementedArtShowServer struct {
proxyImpl protocol . Invoker
}
func ( UnimplementedArtShowServer ) CreateShow ( context . Context , * SaveShowReq ) ( * SaveShowRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateShow not implemented" )
}
func ( UnimplementedArtShowServer ) UpdateShow ( context . Context , * SaveShowReq ) ( * SaveShowRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateShow not implemented" )
}
func ( UnimplementedArtShowServer ) DelShow ( context . Context , * DelShowReq ) ( * CommonRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DelShow not implemented" )
}
func ( UnimplementedArtShowServer ) ShowList ( context . Context , * ShowListReq ) ( * ShowListRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ShowList not implemented" )
}
func ( UnimplementedArtShowServer ) ShowInfo ( context . Context , * ShowDetailReq ) ( * ShowArtworkDetailRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ShowInfo not implemented" )
}
func ( UnimplementedArtShowServer ) ShowStatisticalInfo ( context . Context , * ShowStatisticalInfoReq ) ( * ShowStatisticalInfoRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ShowStatisticalInfo not implemented" )
}
func ( UnimplementedArtShowServer ) ArtworkPrice ( context . Context , * ArtworkPriceReq ) ( * ArtworkPriceRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ArtworkPrice not implemented" )
}
func ( UnimplementedArtShowServer ) CreateApply ( context . Context , * SaveApplyReq ) ( * SaveApplyRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateApply not implemented" )
}
func ( UnimplementedArtShowServer ) UpdateApply ( context . Context , * SaveApplyReq ) ( * SaveApplyRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateApply not implemented" )
}
func ( UnimplementedArtShowServer ) DelApply ( context . Context , * DelApplyReq ) ( * CommonRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DelApply not implemented" )
}
func ( UnimplementedArtShowServer ) ShowListWithApply ( context . Context , * ShowListReq ) ( * ShowListRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ShowListWithApply not implemented" )
}
func ( UnimplementedArtShowServer ) UpdateApplyStatus ( context . Context , * UpdateApplyStatusReq ) ( * CommonRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateApplyStatus not implemented" )
}
func ( UnimplementedArtShowServer ) ApplyList ( context . Context , * ApplyListReq ) ( * ApplyListRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ApplyList not implemented" )
}
func ( UnimplementedArtShowServer ) ApplyDetail ( context . Context , * ApplyShowReq ) ( * ApplyShowRes , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ApplyDetail not implemented" )
}
func ( s * UnimplementedArtShowServer ) XXX_SetProxyImpl ( impl protocol . Invoker ) {
s . proxyImpl = impl
}
func ( s * UnimplementedArtShowServer ) XXX_GetProxyImpl ( ) protocol . Invoker {
return s . proxyImpl
}
func ( s * UnimplementedArtShowServer ) XXX_ServiceDesc ( ) * grpc_go . ServiceDesc {
return & ArtShow_ServiceDesc
}
func ( s * UnimplementedArtShowServer ) XXX_InterfaceName ( ) string {
return "ArtShow.ArtShow"
}
func ( UnimplementedArtShowServer ) mustEmbedUnimplementedArtShowServer ( ) { }
// UnsafeArtShowServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ArtShowServer will
// result in compilation errors.
type UnsafeArtShowServer interface {
mustEmbedUnimplementedArtShowServer ( )
}
func RegisterArtShowServer ( s grpc_go . ServiceRegistrar , srv ArtShowServer ) {
s . RegisterService ( & ArtShow_ServiceDesc , srv )
}
func _ArtShow_CreateShow_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SaveShowReq )
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 ( "CreateShow" , 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 _ArtShow_UpdateShow_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SaveShowReq )
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 ( "UpdateShow" , 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 _ArtShow_DelShow_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DelShowReq )
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 ( "DelShow" , 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 _ArtShow_ShowList_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ShowListReq )
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 ( "ShowList" , 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 _ArtShow_ShowInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ShowDetailReq )
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 ( "ShowInfo" , 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 _ArtShow_ShowStatisticalInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ShowStatisticalInfoReq )
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 ( "ShowStatisticalInfo" , 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 _ArtShow_ArtworkPrice_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ArtworkPriceReq )
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 ( "ArtworkPrice" , 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 _ArtShow_CreateApply_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SaveApplyReq )
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 ( "CreateApply" , 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 _ArtShow_UpdateApply_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SaveApplyReq )
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 ( "UpdateApply" , 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 _ArtShow_DelApply_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DelApplyReq )
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 ( "DelApply" , 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 _ArtShow_ShowListWithApply_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ShowListReq )
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 ( "ShowListWithApply" , 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 _ArtShow_UpdateApplyStatus_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateApplyStatusReq )
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 ( "UpdateApplyStatus" , 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 _ArtShow_ApplyList_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ApplyListReq )
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 ( "ApplyList" , 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 _ArtShow_ApplyDetail_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc_go . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ApplyShowReq )
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 ( "ApplyDetail" , 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 )
}
// ArtShow_ServiceDesc is the grpc_go.ServiceDesc for ArtShow service.
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var ArtShow_ServiceDesc = grpc_go . ServiceDesc {
ServiceName : "ArtShow.ArtShow" ,
HandlerType : ( * ArtShowServer ) ( nil ) ,
Methods : [ ] grpc_go . MethodDesc {
{
MethodName : "CreateShow" ,
Handler : _ArtShow_CreateShow_Handler ,
} ,
{
MethodName : "UpdateShow" ,
Handler : _ArtShow_UpdateShow_Handler ,
} ,
{
MethodName : "DelShow" ,
Handler : _ArtShow_DelShow_Handler ,
} ,
{
MethodName : "ShowList" ,
Handler : _ArtShow_ShowList_Handler ,
} ,
{
MethodName : "ShowInfo" ,
Handler : _ArtShow_ShowInfo_Handler ,
} ,
{
MethodName : "ShowStatisticalInfo" ,
Handler : _ArtShow_ShowStatisticalInfo_Handler ,
} ,
{
MethodName : "ArtworkPrice" ,
Handler : _ArtShow_ArtworkPrice_Handler ,
} ,
{
MethodName : "CreateApply" ,
Handler : _ArtShow_CreateApply_Handler ,
} ,
{
MethodName : "UpdateApply" ,
Handler : _ArtShow_UpdateApply_Handler ,
} ,
{
MethodName : "DelApply" ,
Handler : _ArtShow_DelApply_Handler ,
} ,
{
MethodName : "ShowListWithApply" ,
Handler : _ArtShow_ShowListWithApply_Handler ,
} ,
{
MethodName : "UpdateApplyStatus" ,
Handler : _ArtShow_UpdateApplyStatus_Handler ,
} ,
{
MethodName : "ApplyList" ,
Handler : _ArtShow_ApplyList_Handler ,
} ,
{
MethodName : "ApplyDetail" ,
Handler : _ArtShow_ApplyDetail_Handler ,
} ,
} ,
Streams : [ ] grpc_go . StreamDesc { } ,
2022-09-22 06:23:56 +00:00
Metadata : "pb/artshow.proto" ,
2022-09-21 06:30:52 +00:00
}