|
@@ -38,6 +38,7 @@ const (
|
|
Bxsubscribe_GetStaffSubscribeList_FullMethodName = "/bxsubscribe.Bxsubscribe/getStaffSubscribeList"
|
|
Bxsubscribe_GetStaffSubscribeList_FullMethodName = "/bxsubscribe.Bxsubscribe/getStaffSubscribeList"
|
|
Bxsubscribe_GetStaffSubscribeDetail_FullMethodName = "/bxsubscribe.Bxsubscribe/getStaffSubscribeDetail"
|
|
Bxsubscribe_GetStaffSubscribeDetail_FullMethodName = "/bxsubscribe.Bxsubscribe/getStaffSubscribeDetail"
|
|
Bxsubscribe_BidDistributor_FullMethodName = "/bxsubscribe.Bxsubscribe/bidDistributor"
|
|
Bxsubscribe_BidDistributor_FullMethodName = "/bxsubscribe.Bxsubscribe/bidDistributor"
|
|
|
|
+ Bxsubscribe_BidRecList_FullMethodName = "/bxsubscribe.Bxsubscribe/bidRecList"
|
|
)
|
|
)
|
|
|
|
|
|
// BxsubscribeClient is the client API for Bxsubscribe service.
|
|
// BxsubscribeClient is the client API for Bxsubscribe service.
|
|
@@ -78,6 +79,8 @@ type BxsubscribeClient interface {
|
|
GetStaffSubscribeDetail(ctx context.Context, in *StaffSubscribeDetailReq, opts ...grpc.CallOption) (*StaffSubscribeDetail, error)
|
|
GetStaffSubscribeDetail(ctx context.Context, in *StaffSubscribeDetailReq, opts ...grpc.CallOption) (*StaffSubscribeDetail, error)
|
|
// 标讯信息分发
|
|
// 标讯信息分发
|
|
BidDistributor(ctx context.Context, in *BidDistributorReq, opts ...grpc.CallOption) (*StatusResp, error)
|
|
BidDistributor(ctx context.Context, in *BidDistributorReq, opts ...grpc.CallOption) (*StatusResp, error)
|
|
|
|
+ // 订阅推荐列表
|
|
|
|
+ BidRecList(ctx context.Context, in *BidRecListReq, opts ...grpc.CallOption) (*SubscribeInfosResp, error)
|
|
}
|
|
}
|
|
|
|
|
|
type bxsubscribeClient struct {
|
|
type bxsubscribeClient struct {
|
|
@@ -241,6 +244,15 @@ func (c *bxsubscribeClient) BidDistributor(ctx context.Context, in *BidDistribut
|
|
return out, nil
|
|
return out, nil
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (c *bxsubscribeClient) BidRecList(ctx context.Context, in *BidRecListReq, opts ...grpc.CallOption) (*SubscribeInfosResp, error) {
|
|
|
|
+ out := new(SubscribeInfosResp)
|
|
|
|
+ err := c.cc.Invoke(ctx, Bxsubscribe_BidRecList_FullMethodName, in, out, opts...)
|
|
|
|
+ if err != nil {
|
|
|
|
+ return nil, err
|
|
|
|
+ }
|
|
|
|
+ return out, nil
|
|
|
|
+}
|
|
|
|
+
|
|
// BxsubscribeServer is the server API for Bxsubscribe service.
|
|
// BxsubscribeServer is the server API for Bxsubscribe service.
|
|
// All implementations must embed UnimplementedBxsubscribeServer
|
|
// All implementations must embed UnimplementedBxsubscribeServer
|
|
// for forward compatibility
|
|
// for forward compatibility
|
|
@@ -279,6 +291,8 @@ type BxsubscribeServer interface {
|
|
GetStaffSubscribeDetail(context.Context, *StaffSubscribeDetailReq) (*StaffSubscribeDetail, error)
|
|
GetStaffSubscribeDetail(context.Context, *StaffSubscribeDetailReq) (*StaffSubscribeDetail, error)
|
|
// 标讯信息分发
|
|
// 标讯信息分发
|
|
BidDistributor(context.Context, *BidDistributorReq) (*StatusResp, error)
|
|
BidDistributor(context.Context, *BidDistributorReq) (*StatusResp, error)
|
|
|
|
+ // 订阅推荐列表
|
|
|
|
+ BidRecList(context.Context, *BidRecListReq) (*SubscribeInfosResp, error)
|
|
mustEmbedUnimplementedBxsubscribeServer()
|
|
mustEmbedUnimplementedBxsubscribeServer()
|
|
}
|
|
}
|
|
|
|
|
|
@@ -337,6 +351,9 @@ func (UnimplementedBxsubscribeServer) GetStaffSubscribeDetail(context.Context, *
|
|
func (UnimplementedBxsubscribeServer) BidDistributor(context.Context, *BidDistributorReq) (*StatusResp, error) {
|
|
func (UnimplementedBxsubscribeServer) BidDistributor(context.Context, *BidDistributorReq) (*StatusResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method BidDistributor not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method BidDistributor not implemented")
|
|
}
|
|
}
|
|
|
|
+func (UnimplementedBxsubscribeServer) BidRecList(context.Context, *BidRecListReq) (*SubscribeInfosResp, error) {
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method BidRecList not implemented")
|
|
|
|
+}
|
|
func (UnimplementedBxsubscribeServer) mustEmbedUnimplementedBxsubscribeServer() {}
|
|
func (UnimplementedBxsubscribeServer) mustEmbedUnimplementedBxsubscribeServer() {}
|
|
|
|
|
|
// UnsafeBxsubscribeServer may be embedded to opt out of forward compatibility for this service.
|
|
// UnsafeBxsubscribeServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -656,6 +673,24 @@ func _Bxsubscribe_BidDistributor_Handler(srv interface{}, ctx context.Context, d
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func _Bxsubscribe_BidRecList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
+ in := new(BidRecListReq)
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
+ return nil, err
|
|
|
|
+ }
|
|
|
|
+ if interceptor == nil {
|
|
|
|
+ return srv.(BxsubscribeServer).BidRecList(ctx, in)
|
|
|
|
+ }
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
+ Server: srv,
|
|
|
|
+ FullMethod: Bxsubscribe_BidRecList_FullMethodName,
|
|
|
|
+ }
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
+ return srv.(BxsubscribeServer).BidRecList(ctx, req.(*BidRecListReq))
|
|
|
|
+ }
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
+}
|
|
|
|
+
|
|
// Bxsubscribe_ServiceDesc is the grpc.ServiceDesc for Bxsubscribe service.
|
|
// Bxsubscribe_ServiceDesc is the grpc.ServiceDesc for Bxsubscribe service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -731,6 +766,10 @@ var Bxsubscribe_ServiceDesc = grpc.ServiceDesc{
|
|
MethodName: "bidDistributor",
|
|
MethodName: "bidDistributor",
|
|
Handler: _Bxsubscribe_BidDistributor_Handler,
|
|
Handler: _Bxsubscribe_BidDistributor_Handler,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ MethodName: "bidRecList",
|
|
|
|
+ Handler: _Bxsubscribe_BidRecList_Handler,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "bxsubscribe.proto",
|
|
Metadata: "bxsubscribe.proto",
|