mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-16 20:15:06 +08:00
【代码评审】SYSTEM:微信小程序的订阅消息
This commit is contained in:
@ -57,7 +57,7 @@ public interface SocialClientApi {
|
||||
List<SocialWxSubscribeTemplateRespDTO> getSubscribeTemplate();
|
||||
|
||||
/**
|
||||
* 发送订阅消息
|
||||
* 发送微信小程序订阅消息
|
||||
*
|
||||
* @param reqDTO 请求
|
||||
*/
|
||||
|
@ -6,6 +6,7 @@ import lombok.Data;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
// TODO @puhui99:1)参考 SocialWxQrcodeReqDTO,可以 @see 文档。这样,注释会更见见一点。2)是不是少了 Send:SocialWxSubscribeMessageSendReqDTO
|
||||
/**
|
||||
* 微信小程序订阅消息 Request DTO
|
||||
*
|
||||
@ -14,6 +15,7 @@ import java.util.List;
|
||||
@Data
|
||||
public class SocialWxSubscribeMessageReqDTO {
|
||||
|
||||
// TODO @puhui999:参数校验
|
||||
/**
|
||||
* 接收者(用户)的 openid.
|
||||
* <pre>
|
||||
@ -58,6 +60,7 @@ public class SocialWxSubscribeMessageReqDTO {
|
||||
*/
|
||||
private String lang;
|
||||
|
||||
// TODO @puhui999:是必须 List<KeyValue<String, String>>,还是 Map<String, String 即可)
|
||||
/**
|
||||
* 模板内容,不填则下发空模板.
|
||||
* <pre>
|
||||
|
@ -11,6 +11,7 @@ import lombok.Data;
|
||||
@Data
|
||||
public class SocialWxSubscribeTemplateRespDTO {
|
||||
|
||||
// TODO @puhui999:建议搞成 id
|
||||
/**
|
||||
* 添加至账号下的模板 id,发送小程序订阅消息时所需
|
||||
*/
|
||||
@ -31,8 +32,12 @@ public class SocialWxSubscribeTemplateRespDTO {
|
||||
*/
|
||||
private String example;
|
||||
|
||||
// TODO @puhui999:这个在 wxjava 里面,有枚举字段么?
|
||||
/**
|
||||
* 模版类型,2 为一次性订阅,3 为长期订阅
|
||||
* 模版类型
|
||||
*
|
||||
* 2 为一次性订阅
|
||||
* 3 为长期订阅
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
|
Reference in New Issue
Block a user