【新增】MALL: 新增退款订阅消息发送

This commit is contained in:
puhui999
2024-07-30 15:40:21 +08:00
parent a9862b798d
commit 4c846ef4ce
10 changed files with 60 additions and 53 deletions

View File

@ -32,6 +32,8 @@ public interface SocialClientApi {
*/
SocialWxJsapiSignatureRespDTO createWxMpJsapiSignature(Integer userType, String url);
//======================= 微信小程序独有 =======================
/**
* 获得微信小程序的手机信息
*
@ -49,20 +51,18 @@ public interface SocialClientApi {
*/
byte[] getWxaQrcode(@Valid SocialWxQrcodeReqDTO reqVO);
// TODO @puhui999要不是统一都叫 getWxaSubscribeTemplateList、SocialWxaSubscribeTemplateRespDTO
/**
* 获得微信小程订阅模板
*
* @return 小程序订阅消息模版
*/
List<SocialWxSubscribeTemplateRespDTO> getSubscribeTemplateList(Integer userType);
List<SocialWxaSubscribeTemplateRespDTO> getWxaSubscribeTemplateList(Integer userType);
// TODO @puhui999sendWxaSubscribeMessage、SocialWxaSubscribeMessageSendReqDTO然后不传递 socialType就是专门给微信小程序的
/**
* 发送微信小程序订阅消息
*
* @param reqDTO 请求
*/
void sendSubscribeMessage(SocialWxSubscribeMessageSendReqDTO reqDTO);
void sendWxaSubscribeMessage(SocialWxaSubscribeMessageSendReqDTO reqDTO);
}

View File

@ -1,7 +1,6 @@
package cn.iocoder.yudao.module.system.api.social.dto;
import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
@ -15,7 +14,7 @@ import java.util.Map;
* @author HUIHUI
*/
@Data
public class SocialWxSubscribeMessageSendReqDTO {
public class SocialWxaSubscribeMessageSendReqDTO {
/**
* 用户编号
@ -33,14 +32,6 @@ public class SocialWxSubscribeMessageSendReqDTO {
@NotNull(message = "用户类型不能为空")
private Integer userType;
/**
* 社交类型
*
* 枚举 {@link SocialTypeEnum}
*/
@NotNull(message = "社交类型不能为空")
private Integer socialType;
/**
* 消息模版标题
*/
@ -59,7 +50,7 @@ public class SocialWxSubscribeMessageSendReqDTO {
*/
private Map<String, String> messages;
public SocialWxSubscribeMessageSendReqDTO addMessage(String key, String value) {
public SocialWxaSubscribeMessageSendReqDTO addMessage(String key, String value) {
if (messages == null) {
messages = new HashMap<>();
}

View File

@ -9,7 +9,7 @@ import lombok.Data;
* @author HUIHUI
*/
@Data
public class SocialWxSubscribeTemplateRespDTO {
public class SocialWxaSubscribeTemplateRespDTO {
/**
* 模版编号