|
@@ -2,6 +2,7 @@ package api |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"context" |
|
|
"context" |
|
|
|
|
|
"gim/internal/business/comm/utils" |
|
|
"gim/internal/logic/app" |
|
|
"gim/internal/logic/app" |
|
|
"gim/pkg/grpclib" |
|
|
"gim/pkg/grpclib" |
|
|
"gim/pkg/pb" |
|
|
"gim/pkg/pb" |
|
@@ -36,6 +37,9 @@ func (*LogicExtServer) SendMessage(ctx context.Context, in *pb.SendMessageReq) ( |
|
|
SenderId: userId, |
|
|
SenderId: userId, |
|
|
DeviceId: deviceId, |
|
|
DeviceId: deviceId, |
|
|
} |
|
|
} |
|
|
|
|
|
utils.FilePutContents("sendMessage", utils.SerializeStr(map[string]interface{}{ |
|
|
|
|
|
"data": sender, |
|
|
|
|
|
})) |
|
|
seq, err := app.MessageApp.SendMessage(ctx, &sender, in) |
|
|
seq, err := app.MessageApp.SendMessage(ctx, &sender, in) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|