mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 10:35:07 +08:00
【新增】mall: 钱包充值成功发送订阅消息
This commit is contained in:
@ -5,6 +5,7 @@ import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 社交应用的 API 接口
|
||||
@ -63,4 +64,17 @@ public interface SocialClientApi {
|
||||
*/
|
||||
void sendSubscribeMessage(SocialWxSubscribeMessageSendReqDTO reqDTO, Integer userType);
|
||||
|
||||
/**
|
||||
* 发送微信小程序订阅消息
|
||||
*
|
||||
* @param templateTitle 模版标题
|
||||
* @param messages 消息
|
||||
* @param userType 用户类型
|
||||
* @param userId 用户编号
|
||||
* @param socialType 社交客服端类型
|
||||
* @param path 点击模板卡片后的跳转页面,仅限本小程序内的页面
|
||||
*/
|
||||
void sendSubscribeMessage(String templateTitle, Map<String, String> messages, Integer userType, Long userId,
|
||||
Integer socialType, String path);
|
||||
|
||||
}
|
||||
|
@ -73,12 +73,4 @@ public class SocialWxSubscribeMessageSendReqDTO {
|
||||
*/
|
||||
private Map<String, String> messages;
|
||||
|
||||
public SocialWxSubscribeMessageSendReqDTO addData(String key, String value) {
|
||||
if (messages == null) {
|
||||
messages = new HashMap<>();
|
||||
}
|
||||
messages.put(key, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user