mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-03 05:41:46 +08:00
🆕 #1983 【微信公众号】增加订阅通知相关接口
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package me.chanjar.weixin.common.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 me.chanjar.weixin.common.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,36 @@
|
||||
package me.chanjar.weixin.common.bean.subscribemsg;
|
||||
|
||||
import lombok.Data;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author ArBing
|
||||
*/
|
||||
@Data
|
||||
public class PubTemplateTitleListResult implements Serializable {
|
||||
private static final long serialVersionUID = -7718911668757837527L;
|
||||
|
||||
private int count;
|
||||
|
||||
private List<TemplateItem> data;
|
||||
|
||||
public static PubTemplateTitleListResult fromJson(String json) {
|
||||
return WxGsonBuilder.create().fromJson(json, PubTemplateTitleListResult.class);
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class TemplateItem implements Serializable {
|
||||
private static final long serialVersionUID = 6888726696879905332L;
|
||||
|
||||
private Integer type;
|
||||
|
||||
private Integer tid;
|
||||
|
||||
private String categoryId;
|
||||
|
||||
private String title;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package me.chanjar.weixin.common.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