|
@@ -34,34 +34,36 @@ type MessageCenterClient interface {
|
|
CreateChatSession(ctx context.Context, in *ChatSessionReq, opts ...grpc.CallOption) (*ChatSessionResp, error)
|
|
CreateChatSession(ctx context.Context, in *ChatSessionReq, opts ...grpc.CallOption) (*ChatSessionResp, error)
|
|
// 会话关闭
|
|
// 会话关闭
|
|
CloseChatSession(ctx context.Context, in *CloseSessionReq, opts ...grpc.CallOption) (*ChatSessionResp, error)
|
|
CloseChatSession(ctx context.Context, in *CloseSessionReq, opts ...grpc.CallOption) (*ChatSessionResp, error)
|
|
- // 创建会话并且保存信息
|
|
|
|
|
|
+ //创建会话并且保存信息
|
|
SaveAutoReplyMsg(ctx context.Context, in *SaveAutoReplyReq, opts ...grpc.CallOption) (*MessageResp, error)
|
|
SaveAutoReplyMsg(ctx context.Context, in *SaveAutoReplyReq, opts ...grpc.CallOption) (*MessageResp, error)
|
|
- // 根据消息修改已读状态
|
|
|
|
|
|
+ //根据消息修改已读状态
|
|
UpdateReadById(ctx context.Context, in *ReadStateReq, opts ...grpc.CallOption) (*CurrencyResp, error)
|
|
UpdateReadById(ctx context.Context, in *ReadStateReq, opts ...grpc.CallOption) (*CurrencyResp, error)
|
|
- // 群组列表查询
|
|
|
|
|
|
+ //群组列表查询
|
|
ChatGroupList(ctx context.Context, in *ChatGroupListReq, opts ...grpc.CallOption) (*ChatGroupListResp, error)
|
|
ChatGroupList(ctx context.Context, in *ChatGroupListReq, opts ...grpc.CallOption) (*ChatGroupListResp, error)
|
|
- // 群组新增
|
|
|
|
|
|
+ //群组新增
|
|
ChatGroupAdd(ctx context.Context, in *ChatGroupAddReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
ChatGroupAdd(ctx context.Context, in *ChatGroupAddReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
- // 群组成员查询
|
|
|
|
|
|
+ //群组成员查询
|
|
ChatGroupPerson(ctx context.Context, in *ChatGroupPersonReq, opts ...grpc.CallOption) (*ChatGroupPersonResp, error)
|
|
ChatGroupPerson(ctx context.Context, in *ChatGroupPersonReq, opts ...grpc.CallOption) (*ChatGroupPersonResp, error)
|
|
- // 加入群组
|
|
|
|
|
|
+ //加入群组
|
|
ChatGroupJoin(ctx context.Context, in *ChatGroupJoinReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
ChatGroupJoin(ctx context.Context, in *ChatGroupJoinReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
- // 群组名称修改
|
|
|
|
|
|
+ //群组名称修改
|
|
GroupNameUpdate(ctx context.Context, in *GroupNameUpdateReq, 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)
|
|
GroupNoticeAdd(ctx context.Context, in *GroupNoticeAddReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
- // 群任务编辑
|
|
|
|
|
|
+ //群任务编辑
|
|
GroupNoticeUpdate(ctx context.Context, in *GroupNoticeUpdateReq, 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) (*GroupNoticeGetResp, error)
|
|
GroupNoticeGet(ctx context.Context, in *ChatGroupPersonReq, opts ...grpc.CallOption) (*GroupNoticeGetResp, error)
|
|
- // 通讯录 -企业人员列表
|
|
|
|
|
|
+ //通讯录 -企业人员列表
|
|
EntPersonsList(ctx context.Context, in *EntPersonsListReq, opts ...grpc.CallOption) (*EntPersonListResp, error)
|
|
EntPersonsList(ctx context.Context, in *EntPersonsListReq, opts ...grpc.CallOption) (*EntPersonListResp, error)
|
|
- // 用户撤回消息
|
|
|
|
|
|
+ //用户撤回消息
|
|
WithdrawMessage(ctx context.Context, in *ReadWithdrawReq, opts ...grpc.CallOption) (*CurrencyResp, error)
|
|
WithdrawMessage(ctx context.Context, in *ReadWithdrawReq, opts ...grpc.CallOption) (*CurrencyResp, error)
|
|
// 用户评价回复
|
|
// 用户评价回复
|
|
AppraiseMessage(ctx context.Context, in *AppraiseReq, opts ...grpc.CallOption) (*CurrencyResp, error)
|
|
AppraiseMessage(ctx context.Context, in *AppraiseReq, opts ...grpc.CallOption) (*CurrencyResp, error)
|
|
// 客服列表查询
|
|
// 客服列表查询
|
|
ConversationList(ctx context.Context, in *ConversationReq, opts ...grpc.CallOption) (*UserResp, error)
|
|
ConversationList(ctx context.Context, in *ConversationReq, opts ...grpc.CallOption) (*UserResp, error)
|
|
|
|
+ // 群聊
|
|
|
|
+ GroupChat(ctx context.Context, in *MessageSaveReq, opts ...grpc.CallOption) (*CommonReq, error)
|
|
}
|
|
}
|
|
|
|
|
|
type messageCenterClient struct {
|
|
type messageCenterClient struct {
|
|
@@ -252,6 +254,15 @@ func (c *messageCenterClient) ConversationList(ctx context.Context, in *Conversa
|
|
return out, nil
|
|
return out, nil
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (c *messageCenterClient) GroupChat(ctx context.Context, in *MessageSaveReq, opts ...grpc.CallOption) (*CommonReq, error) {
|
|
|
|
+ out := new(CommonReq)
|
|
|
|
+ err := c.cc.Invoke(ctx, "/messagecenter.messageCenter/GroupChat", in, out, opts...)
|
|
|
|
+ if err != nil {
|
|
|
|
+ return nil, err
|
|
|
|
+ }
|
|
|
|
+ return out, nil
|
|
|
|
+}
|
|
|
|
+
|
|
// MessageCenterServer is the server API for MessageCenter service.
|
|
// MessageCenterServer is the server API for MessageCenter service.
|
|
// All implementations must embed UnimplementedMessageCenterServer
|
|
// All implementations must embed UnimplementedMessageCenterServer
|
|
// for forward compatibility
|
|
// for forward compatibility
|
|
@@ -268,34 +279,36 @@ type MessageCenterServer interface {
|
|
CreateChatSession(context.Context, *ChatSessionReq) (*ChatSessionResp, error)
|
|
CreateChatSession(context.Context, *ChatSessionReq) (*ChatSessionResp, error)
|
|
// 会话关闭
|
|
// 会话关闭
|
|
CloseChatSession(context.Context, *CloseSessionReq) (*ChatSessionResp, error)
|
|
CloseChatSession(context.Context, *CloseSessionReq) (*ChatSessionResp, error)
|
|
- // 创建会话并且保存信息
|
|
|
|
|
|
+ //创建会话并且保存信息
|
|
SaveAutoReplyMsg(context.Context, *SaveAutoReplyReq) (*MessageResp, error)
|
|
SaveAutoReplyMsg(context.Context, *SaveAutoReplyReq) (*MessageResp, error)
|
|
- // 根据消息修改已读状态
|
|
|
|
|
|
+ //根据消息修改已读状态
|
|
UpdateReadById(context.Context, *ReadStateReq) (*CurrencyResp, error)
|
|
UpdateReadById(context.Context, *ReadStateReq) (*CurrencyResp, error)
|
|
- // 群组列表查询
|
|
|
|
|
|
+ //群组列表查询
|
|
ChatGroupList(context.Context, *ChatGroupListReq) (*ChatGroupListResp, error)
|
|
ChatGroupList(context.Context, *ChatGroupListReq) (*ChatGroupListResp, error)
|
|
- // 群组新增
|
|
|
|
|
|
+ //群组新增
|
|
ChatGroupAdd(context.Context, *ChatGroupAddReq) (*CommonReq, error)
|
|
ChatGroupAdd(context.Context, *ChatGroupAddReq) (*CommonReq, error)
|
|
- // 群组成员查询
|
|
|
|
|
|
+ //群组成员查询
|
|
ChatGroupPerson(context.Context, *ChatGroupPersonReq) (*ChatGroupPersonResp, error)
|
|
ChatGroupPerson(context.Context, *ChatGroupPersonReq) (*ChatGroupPersonResp, error)
|
|
- // 加入群组
|
|
|
|
|
|
+ //加入群组
|
|
ChatGroupJoin(context.Context, *ChatGroupJoinReq) (*CommonReq, error)
|
|
ChatGroupJoin(context.Context, *ChatGroupJoinReq) (*CommonReq, error)
|
|
- // 群组名称修改
|
|
|
|
|
|
+ //群组名称修改
|
|
GroupNameUpdate(context.Context, *GroupNameUpdateReq) (*CommonReq, error)
|
|
GroupNameUpdate(context.Context, *GroupNameUpdateReq) (*CommonReq, error)
|
|
- // 群任务新增
|
|
|
|
|
|
+ //群任务新增
|
|
GroupNoticeAdd(context.Context, *GroupNoticeAddReq) (*CommonReq, error)
|
|
GroupNoticeAdd(context.Context, *GroupNoticeAddReq) (*CommonReq, error)
|
|
- // 群任务编辑
|
|
|
|
|
|
+ //群任务编辑
|
|
GroupNoticeUpdate(context.Context, *GroupNoticeUpdateReq) (*CommonReq, error)
|
|
GroupNoticeUpdate(context.Context, *GroupNoticeUpdateReq) (*CommonReq, error)
|
|
- // 群任务详情
|
|
|
|
|
|
+ //群任务详情
|
|
GroupNoticeGet(context.Context, *ChatGroupPersonReq) (*GroupNoticeGetResp, error)
|
|
GroupNoticeGet(context.Context, *ChatGroupPersonReq) (*GroupNoticeGetResp, error)
|
|
- // 通讯录 -企业人员列表
|
|
|
|
|
|
+ //通讯录 -企业人员列表
|
|
EntPersonsList(context.Context, *EntPersonsListReq) (*EntPersonListResp, error)
|
|
EntPersonsList(context.Context, *EntPersonsListReq) (*EntPersonListResp, error)
|
|
- // 用户撤回消息
|
|
|
|
|
|
+ //用户撤回消息
|
|
WithdrawMessage(context.Context, *ReadWithdrawReq) (*CurrencyResp, error)
|
|
WithdrawMessage(context.Context, *ReadWithdrawReq) (*CurrencyResp, error)
|
|
// 用户评价回复
|
|
// 用户评价回复
|
|
AppraiseMessage(context.Context, *AppraiseReq) (*CurrencyResp, error)
|
|
AppraiseMessage(context.Context, *AppraiseReq) (*CurrencyResp, error)
|
|
// 客服列表查询
|
|
// 客服列表查询
|
|
ConversationList(context.Context, *ConversationReq) (*UserResp, error)
|
|
ConversationList(context.Context, *ConversationReq) (*UserResp, error)
|
|
|
|
+ // 群聊
|
|
|
|
+ GroupChat(context.Context, *MessageSaveReq) (*CommonReq, error)
|
|
mustEmbedUnimplementedMessageCenterServer()
|
|
mustEmbedUnimplementedMessageCenterServer()
|
|
}
|
|
}
|
|
|
|
|
|
@@ -363,6 +376,9 @@ func (UnimplementedMessageCenterServer) AppraiseMessage(context.Context, *Apprai
|
|
func (UnimplementedMessageCenterServer) ConversationList(context.Context, *ConversationReq) (*UserResp, error) {
|
|
func (UnimplementedMessageCenterServer) ConversationList(context.Context, *ConversationReq) (*UserResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ConversationList not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method ConversationList not implemented")
|
|
}
|
|
}
|
|
|
|
+func (UnimplementedMessageCenterServer) GroupChat(context.Context, *MessageSaveReq) (*CommonReq, error) {
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GroupChat not implemented")
|
|
|
|
+}
|
|
func (UnimplementedMessageCenterServer) mustEmbedUnimplementedMessageCenterServer() {}
|
|
func (UnimplementedMessageCenterServer) mustEmbedUnimplementedMessageCenterServer() {}
|
|
|
|
|
|
// UnsafeMessageCenterServer may be embedded to opt out of forward compatibility for this service.
|
|
// UnsafeMessageCenterServer may be embedded to opt out of forward compatibility for this service.
|
|
@@ -736,6 +752,24 @@ func _MessageCenter_ConversationList_Handler(srv interface{}, ctx context.Contex
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func _MessageCenter_GroupChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
+ in := new(MessageSaveReq)
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
+ return nil, err
|
|
|
|
+ }
|
|
|
|
+ if interceptor == nil {
|
|
|
|
+ return srv.(MessageCenterServer).GroupChat(ctx, in)
|
|
|
|
+ }
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
+ Server: srv,
|
|
|
|
+ FullMethod: "/messagecenter.messageCenter/GroupChat",
|
|
|
|
+ }
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
+ return srv.(MessageCenterServer).GroupChat(ctx, req.(*MessageSaveReq))
|
|
|
|
+ }
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
+}
|
|
|
|
+
|
|
// MessageCenter_ServiceDesc is the grpc.ServiceDesc for MessageCenter service.
|
|
// MessageCenter_ServiceDesc is the grpc.ServiceDesc for MessageCenter 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)
|
|
@@ -823,6 +857,10 @@ var MessageCenter_ServiceDesc = grpc.ServiceDesc{
|
|
MethodName: "ConversationList",
|
|
MethodName: "ConversationList",
|
|
Handler: _MessageCenter_ConversationList_Handler,
|
|
Handler: _MessageCenter_ConversationList_Handler,
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ MethodName: "GroupChat",
|
|
|
|
+ Handler: _MessageCenter_GroupChat_Handler,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "messagecenter.proto",
|
|
Metadata: "messagecenter.proto",
|