Files
NoticeService/src/main/java/com/yunhai/notice/service/msg/SdkUserMsgClient.java
T

21 lines
799 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.notice.service.msg;
import com.yunhai.platform.openapi.msg.YschMsgOpenApi;
import com.yunhai.platform.openapi.msg.model.SendMsgRequest;
import org.springframework.stereotype.Component;
/**
* SDK 实现:委托 yh-openapi-client 的 msg 域门面(服务目录 key={@code usermsg},
* 地址解析 targets > yh.open.services.usermsg > 枚举 base-host 兜底;签名/信封全由 SDK 承载)。
* 门面由 yh-openapi-spring-boot-starter 自动装配;未装配时调用抛 IllegalStateException
* (推送方按容错语义捕获记日志,不阻断主流程)。
*/
@Component
public class SdkUserMsgClient implements UserMsgClient {
@Override
public void sendUserMsg(SendMsgRequest request) {
YschMsgOpenApi.sendUserMsg(request);
}
}