golang-im聊天
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

16 行
369 B

  1. package proxy
  2. import (
  3. "context"
  4. "gim/pkg/pb"
  5. "google.golang.org/protobuf/proto"
  6. )
  7. var MessageProxy messageProxy
  8. type messageProxy interface {
  9. SendToUser(ctx context.Context, sender *pb.Sender, toUserId int64, req *pb.SendMessageReq) (int64, error)
  10. PushToUser(ctx context.Context, userId int64, code pb.PushCode, message proto.Message, isPersist bool) error
  11. }