mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-11 23:47:32 +08:00
27 lines
858 B
Go
27 lines
858 B
Go
package notification
|
|
|
|
import (
|
|
"context"
|
|
"github.com/apache/dubbo-go"
|
|
pbconv "github.com/OpenIMSDK/protocol/conversation"
|
|
"github.com/openimsdk/open-im-server/v3/pkg/rpcclient"
|
|
)
|
|
|
|
type Conversation struct {
|
|
Client pbconv.ConversationClient
|
|
conn dubbo-go.ClientConnInterface
|
|
discov discoveryregistry.SvcDiscoveryRegistry
|
|
}
|
|
|
|
func (c *Conversation) SendMessage(ctx context.Context, req *pbconv.SendMessageReq) (*pbconv.SendMessageResp, error) {
|
|
return c.Client.SendMessage(ctx, req)
|
|
}
|
|
|
|
func (c *Conversation) GetConversation(ctx context.Context, req *pbconv.GetConversationReq) (*pbconv.GetConversationResp, error) {
|
|
return c.Client.GetConversation(ctx, req)
|
|
}
|
|
|
|
func (c *Conversation) DeleteConversation(ctx context.Context, req *pbconv.DeleteConversationReq) (*pbconv.DeleteConversationResp, error) {
|
|
return c.Client.DeleteConversation(ctx, req)
|
|
}
|