package service import ( "context" "slowwildws/internal/service/conversation" "slowwildws/internal/types" msgChat "git.banshen.xyz/huangguangrong/slow_wild_queue/types" ) type MessageService interface { ChatHandler(msg *types.Message, uid int64) (*msgChat.MsgChatTransfer, error) } type SlowWildService struct { } func NewSlowWildService() *SlowWildService { return &SlowWildService{} } func (s SlowWildService) GetMethodHandler(method string, ctx context.Context) MessageService { switch method { case "chat": return conversation.NewConversationLogic(ctx) default: return nil } }