|
@@ -2,7 +2,7 @@
|
|
|
// versions:
|
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
|
// - protoc v3.15.1
|
|
|
-// source: messageCenter.proto
|
|
|
+// source: messagecenter.proto
|
|
|
|
|
|
package messagecenter
|
|
|
|
|
@@ -38,6 +38,22 @@ type MessageCenterClient interface {
|
|
|
SaveAutoReplyMsg(ctx context.Context, in *SaveAutoReplyReq, opts ...grpc.CallOption) (*MessageResp, error)
|
|
|
//根据消息修改已读状态
|
|
|
UpdateReadById(ctx context.Context, in *ReadStateReq, opts ...grpc.CallOption) (*CurrencyResp, error)
|
|
|
+ //群组列表查询
|
|
|
+ ChatGroupList(ctx context.Context, in *ChatGroupListReq, opts ...grpc.CallOption) (*ChatGroupListResp, error)
|
|
|
+ //群组新增
|
|
|
+ ChatGroupAdd(ctx context.Context, in *ChatGroupAddReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
|
+ //群组成员查询
|
|
|
+ ChatGroupPerson(ctx context.Context, in *ChatGroupPersonReq, opts ...grpc.CallOption) (*ChatGroupPersonResp, error)
|
|
|
+ //加入群组
|
|
|
+ ChatGroupJoin(ctx context.Context, in *ChatGroupJoinReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
|
+ //群组名称修改
|
|
|
+ GroupNameUpdate(ctx context.Context, in *GroupNameUpdateReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
|
+ //群任务新增
|
|
|
+ GroupNoticeAdd(ctx context.Context, in *GroupNoticeAddReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
|
+ //群任务编辑
|
|
|
+ GroupNoticeUpdate(ctx context.Context, in *GroupNoticeUpdateReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
|
+ //群任务编辑
|
|
|
+ GroupNoticeGet(ctx context.Context, in *ChatGroupPersonReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
|
}
|
|
|
|
|
|
type messageCenterClient struct {
|
|
@@ -120,6 +136,78 @@ func (c *messageCenterClient) UpdateReadById(ctx context.Context, in *ReadStateR
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *messageCenterClient) ChatGroupList(ctx context.Context, in *ChatGroupListReq, opts ...grpc.CallOption) (*ChatGroupListResp, error) {
|
|
|
+ out := new(ChatGroupListResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/ChatGroupList", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *messageCenterClient) ChatGroupAdd(ctx context.Context, in *ChatGroupAddReq, opts ...grpc.CallOption) (*CommonReq, error) {
|
|
|
+ out := new(CommonReq)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/ChatGroupAdd", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *messageCenterClient) ChatGroupPerson(ctx context.Context, in *ChatGroupPersonReq, opts ...grpc.CallOption) (*ChatGroupPersonResp, error) {
|
|
|
+ out := new(ChatGroupPersonResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/ChatGroupPerson", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *messageCenterClient) ChatGroupJoin(ctx context.Context, in *ChatGroupJoinReq, opts ...grpc.CallOption) (*CommonReq, error) {
|
|
|
+ out := new(CommonReq)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/ChatGroupJoin", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *messageCenterClient) GroupNameUpdate(ctx context.Context, in *GroupNameUpdateReq, opts ...grpc.CallOption) (*CommonReq, error) {
|
|
|
+ out := new(CommonReq)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/GroupNameUpdate", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *messageCenterClient) GroupNoticeAdd(ctx context.Context, in *GroupNoticeAddReq, opts ...grpc.CallOption) (*CommonReq, error) {
|
|
|
+ out := new(CommonReq)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/GroupNoticeAdd", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *messageCenterClient) GroupNoticeUpdate(ctx context.Context, in *GroupNoticeUpdateReq, opts ...grpc.CallOption) (*CommonReq, error) {
|
|
|
+ out := new(CommonReq)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/GroupNoticeUpdate", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *messageCenterClient) GroupNoticeGet(ctx context.Context, in *ChatGroupPersonReq, opts ...grpc.CallOption) (*CommonReq, error) {
|
|
|
+ out := new(CommonReq)
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/GroupNoticeGet", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// MessageCenterServer is the server API for MessageCenter service.
|
|
|
// All implementations must embed UnimplementedMessageCenterServer
|
|
|
// for forward compatibility
|
|
@@ -140,6 +228,22 @@ type MessageCenterServer interface {
|
|
|
SaveAutoReplyMsg(context.Context, *SaveAutoReplyReq) (*MessageResp, error)
|
|
|
//根据消息修改已读状态
|
|
|
UpdateReadById(context.Context, *ReadStateReq) (*CurrencyResp, error)
|
|
|
+ //群组列表查询
|
|
|
+ ChatGroupList(context.Context, *ChatGroupListReq) (*ChatGroupListResp, error)
|
|
|
+ //群组新增
|
|
|
+ ChatGroupAdd(context.Context, *ChatGroupAddReq) (*CommonReq, error)
|
|
|
+ //群组成员查询
|
|
|
+ ChatGroupPerson(context.Context, *ChatGroupPersonReq) (*ChatGroupPersonResp, error)
|
|
|
+ //加入群组
|
|
|
+ ChatGroupJoin(context.Context, *ChatGroupJoinReq) (*CommonReq, error)
|
|
|
+ //群组名称修改
|
|
|
+ GroupNameUpdate(context.Context, *GroupNameUpdateReq) (*CommonReq, error)
|
|
|
+ //群任务新增
|
|
|
+ GroupNoticeAdd(context.Context, *GroupNoticeAddReq) (*CommonReq, error)
|
|
|
+ //群任务编辑
|
|
|
+ GroupNoticeUpdate(context.Context, *GroupNoticeUpdateReq) (*CommonReq, error)
|
|
|
+ //群任务编辑
|
|
|
+ GroupNoticeGet(context.Context, *ChatGroupPersonReq) (*CommonReq, error)
|
|
|
mustEmbedUnimplementedMessageCenterServer()
|
|
|
}
|
|
|
|
|
@@ -171,6 +275,30 @@ func (UnimplementedMessageCenterServer) SaveAutoReplyMsg(context.Context, *SaveA
|
|
|
func (UnimplementedMessageCenterServer) UpdateReadById(context.Context, *ReadStateReq) (*CurrencyResp, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateReadById not implemented")
|
|
|
}
|
|
|
+func (UnimplementedMessageCenterServer) ChatGroupList(context.Context, *ChatGroupListReq) (*ChatGroupListResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ChatGroupList not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMessageCenterServer) ChatGroupAdd(context.Context, *ChatGroupAddReq) (*CommonReq, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ChatGroupAdd not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMessageCenterServer) ChatGroupPerson(context.Context, *ChatGroupPersonReq) (*ChatGroupPersonResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ChatGroupPerson not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMessageCenterServer) ChatGroupJoin(context.Context, *ChatGroupJoinReq) (*CommonReq, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method ChatGroupJoin not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMessageCenterServer) GroupNameUpdate(context.Context, *GroupNameUpdateReq) (*CommonReq, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GroupNameUpdate not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMessageCenterServer) GroupNoticeAdd(context.Context, *GroupNoticeAddReq) (*CommonReq, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GroupNoticeAdd not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMessageCenterServer) GroupNoticeUpdate(context.Context, *GroupNoticeUpdateReq) (*CommonReq, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GroupNoticeUpdate not implemented")
|
|
|
+}
|
|
|
+func (UnimplementedMessageCenterServer) GroupNoticeGet(context.Context, *ChatGroupPersonReq) (*CommonReq, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GroupNoticeGet not implemented")
|
|
|
+}
|
|
|
func (UnimplementedMessageCenterServer) mustEmbedUnimplementedMessageCenterServer() {}
|
|
|
|
|
|
// UnsafeMessageCenterServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -328,6 +456,150 @@ func _MessageCenter_UpdateReadById_Handler(srv interface{}, ctx context.Context,
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _MessageCenter_ChatGroupList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ChatGroupListReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupList(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/ChatGroupList",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupList(ctx, req.(*ChatGroupListReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _MessageCenter_ChatGroupAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ChatGroupAddReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupAdd(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/ChatGroupAdd",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupAdd(ctx, req.(*ChatGroupAddReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _MessageCenter_ChatGroupPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ChatGroupPersonReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupPerson(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/ChatGroupPerson",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupPerson(ctx, req.(*ChatGroupPersonReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _MessageCenter_ChatGroupJoin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ChatGroupJoinReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupJoin(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/ChatGroupJoin",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).ChatGroupJoin(ctx, req.(*ChatGroupJoinReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _MessageCenter_GroupNameUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(GroupNameUpdateReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).GroupNameUpdate(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/GroupNameUpdate",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).GroupNameUpdate(ctx, req.(*GroupNameUpdateReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _MessageCenter_GroupNoticeAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(GroupNoticeAddReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).GroupNoticeAdd(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/GroupNoticeAdd",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).GroupNoticeAdd(ctx, req.(*GroupNoticeAddReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _MessageCenter_GroupNoticeUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(GroupNoticeUpdateReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).GroupNoticeUpdate(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/GroupNoticeUpdate",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).GroupNoticeUpdate(ctx, req.(*GroupNoticeUpdateReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _MessageCenter_GroupNoticeGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ChatGroupPersonReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageCenterServer).GroupNoticeGet(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/messagecenter.messageCenter/GroupNoticeGet",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageCenterServer).GroupNoticeGet(ctx, req.(*ChatGroupPersonReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
// MessageCenter_ServiceDesc is the grpc.ServiceDesc for MessageCenter service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
@@ -367,7 +639,39 @@ var MessageCenter_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "UpdateReadById",
|
|
|
Handler: _MessageCenter_UpdateReadById_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "ChatGroupList",
|
|
|
+ Handler: _MessageCenter_ChatGroupList_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "ChatGroupAdd",
|
|
|
+ Handler: _MessageCenter_ChatGroupAdd_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "ChatGroupPerson",
|
|
|
+ Handler: _MessageCenter_ChatGroupPerson_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "ChatGroupJoin",
|
|
|
+ Handler: _MessageCenter_ChatGroupJoin_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "GroupNameUpdate",
|
|
|
+ Handler: _MessageCenter_GroupNameUpdate_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "GroupNoticeAdd",
|
|
|
+ Handler: _MessageCenter_GroupNoticeAdd_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "GroupNoticeUpdate",
|
|
|
+ Handler: _MessageCenter_GroupNoticeUpdate_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "GroupNoticeGet",
|
|
|
+ Handler: _MessageCenter_GroupNoticeGet_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
- Metadata: "messageCenter.proto",
|
|
|
+ Metadata: "messagecenter.proto",
|
|
|
}
|