【新增】mall: 钱包充值成功发送订阅消息

This commit is contained in:
puhui999
2024-07-29 17:14:41 +08:00
parent 4696105210
commit 9a926e251b
8 changed files with 203 additions and 11 deletions

View File

@ -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);
}

View File

@ -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;
}
}