mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 重构优化部分代码
This commit is contained in:
@@ -60,7 +60,7 @@ public class WxMaSubscribeMessage implements Serializable {
|
||||
* 描述: 模板内容,不填则下发空模板
|
||||
* </pre>
|
||||
*/
|
||||
private List<Data> data;
|
||||
private List<MsgData> data;
|
||||
|
||||
/**
|
||||
* 跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版
|
||||
@@ -72,7 +72,7 @@ public class WxMaSubscribeMessage implements Serializable {
|
||||
*/
|
||||
private String lang = WxMaConstants.MiniProgramLang.ZH_CN;
|
||||
|
||||
public WxMaSubscribeMessage addData(Data datum) {
|
||||
public WxMaSubscribeMessage addData(MsgData datum) {
|
||||
if (this.data == null) {
|
||||
this.data = new ArrayList<>();
|
||||
}
|
||||
@@ -86,10 +86,10 @@ public class WxMaSubscribeMessage implements Serializable {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
@lombok.Data
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class Data implements Serializable {
|
||||
public static class MsgData implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String name;
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package cn.binarywang.wx.miniapp.bean.subscribemsg;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* .
|
||||
*
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
* @date 2021-01-27
|
||||
*/
|
||||
@Data
|
||||
public class CategoryData implements Serializable {
|
||||
private static final long serialVersionUID = -5935548352317679892L;
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package cn.binarywang.wx.miniapp.bean.subscribemsg;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* .
|
||||
*
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
* @date 2021-01-27
|
||||
*/
|
||||
@Data
|
||||
public class PubTemplateKeyword implements Serializable {
|
||||
private static final long serialVersionUID = -1100641668859815647L;
|
||||
|
||||
private int kid;
|
||||
private String name;
|
||||
private String example;
|
||||
private String rule;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package cn.binarywang.wx.miniapp.bean.subscribemsg;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* .
|
||||
*
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
* @date 2021-01-27
|
||||
*/
|
||||
@Data
|
||||
public class TemplateInfo implements Serializable {
|
||||
private static final long serialVersionUID = 6971785763573992264L;
|
||||
|
||||
private String priTmplId;
|
||||
private String title;
|
||||
private String content;
|
||||
private String example;
|
||||
private int type;
|
||||
}
|
||||
Reference in New Issue
Block a user