class NotificationsPublishProvider implements SubscriptionProvider {

    private final EventBus eventBus;

    @Override
    public String id() {
        return "notifications-publisher";
    }

    @Override
    public String name() {
        return "通知推送器";
    }

    @Override
    public String[] getTopicPattern() {
        return new String[]{"/notifications"};
    }

    @Override
    public Flux<Message> subscribe(SubscribeRequest request) {<FILL_FUNCTION_BODY>}
}


        return eventBus
            .subscribe(Subscription.of(
                "notifications-publisher",
                "/notifications/user/" + request.getAuthentication().getUser().getId() + "/*/*",
                Subscription.Feature.local, Subscription.Feature.broker
            ))
            .map(msg -> Message.success(request.getId(), msg.getTopic(), msg.bodyToJson(true)));
    
<no_super_class>