Browse Source

update push

master
DengBiao 1 year ago
parent
commit
3afb57a435
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      internal/logic/api/logic_ext.go

+ 4
- 0
internal/logic/api/logic_ext.go View File

@@ -2,6 +2,7 @@ package api

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


Loading…
Cancel
Save