25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
479 B

  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. }