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

2 天前
123456789101112131415161718192021
  1. package app
  2. import (
  3. "context"
  4. "egg-im/internal/logic/domain/room"
  5. "egg-im/pkg/pb"
  6. )
  7. type roomApp struct{}
  8. var RoomApp = new(roomApp)
  9. // Push 推送房间消息
  10. func (s *roomApp) Push(ctx context.Context, sender *pb.Sender, req *pb.PushRoomReq) error {
  11. return room.RoomService.Push(ctx, sender, req)
  12. }
  13. // SubscribeRoom 订阅房间
  14. func (s *roomApp) SubscribeRoom(ctx context.Context, req *pb.SubscribeRoomReq) error {
  15. return room.RoomService.SubscribeRoom(ctx, req)
  16. }