|
|
|
|
@ -108,6 +108,8 @@ type BundleClient interface {
|
|
|
|
|
MetricsBundlePurchaseExport(ctx context.Context, in *MetricsBundlePurchaseExportReq, opts ...grpc_go.CallOption) (*MetricsBundlePurchaseExportResp, common.ErrorWithAttachment)
|
|
|
|
|
MetricsArtistAccountExport(ctx context.Context, in *MetricsArtistAccountExportReq, opts ...grpc_go.CallOption) (*MetricsArtistAccountExportResp, common.ErrorWithAttachment)
|
|
|
|
|
MetricsVideoSubmitExport(ctx context.Context, in *MetricsVideoSubmitExportReq, opts ...grpc_go.CallOption) (*MetricsVideoSubmitExportResp, common.ErrorWithAttachment)
|
|
|
|
|
GetPendingTaskLayout(ctx context.Context, in *GetPendingTaskLayoutReq, opts ...grpc_go.CallOption) (*GetPendingTaskLayoutResp, common.ErrorWithAttachment)
|
|
|
|
|
SetPendingTaskLayout(ctx context.Context, in *SetPendingTaskLayoutReq, opts ...grpc_go.CallOption) (*SetPendingTaskLayoutResp, common.ErrorWithAttachment)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type bundleClient struct {
|
|
|
|
|
@ -188,6 +190,8 @@ type BundleClientImpl struct {
|
|
|
|
|
MetricsBundlePurchaseExport func(ctx context.Context, in *MetricsBundlePurchaseExportReq) (*MetricsBundlePurchaseExportResp, error)
|
|
|
|
|
MetricsArtistAccountExport func(ctx context.Context, in *MetricsArtistAccountExportReq) (*MetricsArtistAccountExportResp, error)
|
|
|
|
|
MetricsVideoSubmitExport func(ctx context.Context, in *MetricsVideoSubmitExportReq) (*MetricsVideoSubmitExportResp, error)
|
|
|
|
|
GetPendingTaskLayout func(ctx context.Context, in *GetPendingTaskLayoutReq) (*GetPendingTaskLayoutResp, error)
|
|
|
|
|
SetPendingTaskLayout func(ctx context.Context, in *SetPendingTaskLayoutReq) (*SetPendingTaskLayoutResp, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *BundleClientImpl) GetDubboStub(cc *triple.TripleConn) BundleClient {
|
|
|
|
|
@ -640,6 +644,18 @@ func (c *bundleClient) MetricsVideoSubmitExport(ctx context.Context, in *Metrics
|
|
|
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/MetricsVideoSubmitExport", in, out)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *bundleClient) GetPendingTaskLayout(ctx context.Context, in *GetPendingTaskLayoutReq, opts ...grpc_go.CallOption) (*GetPendingTaskLayoutResp, common.ErrorWithAttachment) {
|
|
|
|
|
out := new(GetPendingTaskLayoutResp)
|
|
|
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
|
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetPendingTaskLayout", in, out)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *bundleClient) SetPendingTaskLayout(ctx context.Context, in *SetPendingTaskLayoutReq, opts ...grpc_go.CallOption) (*SetPendingTaskLayoutResp, common.ErrorWithAttachment) {
|
|
|
|
|
out := new(SetPendingTaskLayoutResp)
|
|
|
|
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
|
|
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/SetPendingTaskLayout", in, out)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BundleServer is the server API for Bundle service.
|
|
|
|
|
// All implementations must embed UnimplementedBundleServer
|
|
|
|
|
// for forward compatibility
|
|
|
|
|
@ -724,6 +740,8 @@ type BundleServer interface {
|
|
|
|
|
MetricsBundlePurchaseExport(context.Context, *MetricsBundlePurchaseExportReq) (*MetricsBundlePurchaseExportResp, error)
|
|
|
|
|
MetricsArtistAccountExport(context.Context, *MetricsArtistAccountExportReq) (*MetricsArtistAccountExportResp, error)
|
|
|
|
|
MetricsVideoSubmitExport(context.Context, *MetricsVideoSubmitExportReq) (*MetricsVideoSubmitExportResp, error)
|
|
|
|
|
GetPendingTaskLayout(context.Context, *GetPendingTaskLayoutReq) (*GetPendingTaskLayoutResp, error)
|
|
|
|
|
SetPendingTaskLayout(context.Context, *SetPendingTaskLayoutReq) (*SetPendingTaskLayoutResp, error)
|
|
|
|
|
mustEmbedUnimplementedBundleServer()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -951,6 +969,12 @@ func (UnimplementedBundleServer) MetricsArtistAccountExport(context.Context, *Me
|
|
|
|
|
func (UnimplementedBundleServer) MetricsVideoSubmitExport(context.Context, *MetricsVideoSubmitExportReq) (*MetricsVideoSubmitExportResp, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method MetricsVideoSubmitExport not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (UnimplementedBundleServer) GetPendingTaskLayout(context.Context, *GetPendingTaskLayoutReq) (*GetPendingTaskLayoutResp, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetPendingTaskLayout not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (UnimplementedBundleServer) SetPendingTaskLayout(context.Context, *SetPendingTaskLayoutReq) (*SetPendingTaskLayoutResp, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SetPendingTaskLayout not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (s *UnimplementedBundleServer) XXX_SetProxyImpl(impl protocol.Invoker) {
|
|
|
|
|
s.proxyImpl = impl
|
|
|
|
|
}
|
|
|
|
|
@ -3096,6 +3120,64 @@ func _Bundle_MetricsVideoSubmitExport_Handler(srv interface{}, ctx context.Conte
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Bundle_GetPendingTaskLayout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(GetPendingTaskLayoutReq)
|
|
|
|
|
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("GetPendingTaskLayout", 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 _Bundle_SetPendingTaskLayout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(SetPendingTaskLayoutReq)
|
|
|
|
|
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("SetPendingTaskLayout", 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)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bundle_ServiceDesc is the grpc_go.ServiceDesc for Bundle service.
|
|
|
|
|
// It's only intended for direct use with grpc_go.RegisterService,
|
|
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
|
|
@ -3395,6 +3477,14 @@ var Bundle_ServiceDesc = grpc_go.ServiceDesc{
|
|
|
|
|
MethodName: "MetricsVideoSubmitExport",
|
|
|
|
|
Handler: _Bundle_MetricsVideoSubmitExport_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "GetPendingTaskLayout",
|
|
|
|
|
Handler: _Bundle_GetPendingTaskLayout_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "SetPendingTaskLayout",
|
|
|
|
|
Handler: _Bundle_SetPendingTaskLayout_Handler,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Streams: []grpc_go.StreamDesc{},
|
|
|
|
|
Metadata: "pb/bundle.proto",
|
|
|
|
|
|