Files
YschcmsService/src/main/java/com/yunhai/cms/service/WeChatPushService.java
T
2026-09-07 09:09:39 +08:00

22 lines
741 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.yunhai.cms.service;
import com.yunhai.cms.event.ArticlePublishedEvent;
/**
* 微信图文推送服务接口(方案 §7.4 预留入口)。
*
* <p>本期 {@link com.yunhai.cms.service.impl.NoopWeChatPushService} 空实现:
* 事件照常发布,Noop 直接返回,零微信外联/零微信配置键/零新增依赖。
* 启用时按《微信平台对接方案.md》提供真实实现(公众号配置经 projman 注入)。
*/
public interface WeChatPushService {
/**
* 文章发布后回调(AFTER_COMMIT)。
*
* @param event 发布事件(articleId/siteId/title)
* @return 是否已推送(Noop 恒 false)
*/
boolean onArticlePublished(ArticlePublishedEvent event);
}