package app import ( "context" "egg-im/internal/logic/domain/room" "egg-im/pkg/pb" ) type roomApp struct{} var RoomApp = new(roomApp) // Push 推送房间消息 func (s *roomApp) Push(ctx context.Context, sender *pb.Sender, req *pb.PushRoomReq) error { return room.RoomService.Push(ctx, sender, req) } // SubscribeRoom 订阅房间 func (s *roomApp) SubscribeRoom(ctx context.Context, req *pb.SubscribeRoomReq) error { return room.RoomService.SubscribeRoom(ctx, req) }