|
@@ -34,7 +34,9 @@ type BxsubscribeClient interface {
|
|
|
SetRead(ctx context.Context, in *SetReadReq, opts ...grpc.CallOption) (*StatusResp, error)
|
|
|
// 关键词获取
|
|
|
GetKey(ctx context.Context, in *GetKeyReq, opts ...grpc.CallOption) (*KeyResp, error)
|
|
|
- // 手动分发人员
|
|
|
+ // 信息分发
|
|
|
+ MsgDistributor(ctx context.Context, in *MsgDistributorReq, opts ...grpc.CallOption) (*StatusResp, error)
|
|
|
+ // 手动分发人员查询
|
|
|
GetDistributor(ctx context.Context, in *GetDistributorReq, opts ...grpc.CallOption) (*DistributorResp, error)
|
|
|
// 查看状态
|
|
|
GetViewStatus(ctx context.Context, in *GetViewStatusReq, opts ...grpc.CallOption) (*ViewStatusResp, error)
|
|
@@ -102,6 +104,15 @@ func (c *bxsubscribeClient) GetKey(ctx context.Context, in *GetKeyReq, opts ...g
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *bxsubscribeClient) MsgDistributor(ctx context.Context, in *MsgDistributorReq, opts ...grpc.CallOption) (*StatusResp, error) {
|
|
|
+ out := new(StatusResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/bxsubscribe.Bxsubscribe/MsgDistributor", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *bxsubscribeClient) GetDistributor(ctx context.Context, in *GetDistributorReq, opts ...grpc.CallOption) (*DistributorResp, error) {
|
|
|
out := new(DistributorResp)
|
|
|
err := c.cc.Invoke(ctx, "/bxsubscribe.Bxsubscribe/GetDistributor", in, out, opts...)
|
|
@@ -136,7 +147,9 @@ type BxsubscribeServer interface {
|
|
|
SetRead(context.Context, *SetReadReq) (*StatusResp, error)
|
|
|
// 关键词获取
|
|
|
GetKey(context.Context, *GetKeyReq) (*KeyResp, error)
|
|
|
- // 手动分发人员
|
|
|
+ // 信息分发
|
|
|
+ MsgDistributor(context.Context, *MsgDistributorReq) (*StatusResp, error)
|
|
|
+ // 手动分发人员查询
|
|
|
GetDistributor(context.Context, *GetDistributorReq) (*DistributorResp, error)
|
|
|
// 查看状态
|
|
|
GetViewStatus(context.Context, *GetViewStatusReq) (*ViewStatusResp, error)
|
|
@@ -165,6 +178,9 @@ func (UnimplementedBxsubscribeServer) SetRead(context.Context, *SetReadReq) (*St
|
|
|
func (UnimplementedBxsubscribeServer) GetKey(context.Context, *GetKeyReq) (*KeyResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented")
|
|
|
}
|
|
|
+func (UnimplementedBxsubscribeServer) MsgDistributor(context.Context, *MsgDistributorReq) (*StatusResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method MsgDistributor not implemented")
|
|
|
+}
|
|
|
func (UnimplementedBxsubscribeServer) GetDistributor(context.Context, *GetDistributorReq) (*DistributorResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetDistributor not implemented")
|
|
|
}
|
|
@@ -292,6 +308,24 @@ func _Bxsubscribe_GetKey_Handler(srv interface{}, ctx context.Context, dec func(
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Bxsubscribe_MsgDistributor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(MsgDistributorReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(BxsubscribeServer).MsgDistributor(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/bxsubscribe.Bxsubscribe/MsgDistributor",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(BxsubscribeServer).MsgDistributor(ctx, req.(*MsgDistributorReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
func _Bxsubscribe_GetDistributor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(GetDistributorReq)
|
|
|
if err := dec(in); err != nil {
|
|
@@ -359,6 +393,10 @@ var Bxsubscribe_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetKey",
|
|
|
Handler: _Bxsubscribe_GetKey_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "MsgDistributor",
|
|
|
+ Handler: _Bxsubscribe_MsgDistributor_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "GetDistributor",
|
|
|
Handler: _Bxsubscribe_GetDistributor_Handler,
|