mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
调整移除group相关接口后的代码
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
package me.chanjar.weixin.mp.bean;
|
||||
|
||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 微信用户分组
|
||||
* @author chanjarster
|
||||
*
|
||||
*/
|
||||
public class WxMpGroup implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1554709708638735270L;
|
||||
private long id = -1;
|
||||
private String name;
|
||||
private long count;
|
||||
public long getId() {
|
||||
return this.id;
|
||||
}
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public long getCount() {
|
||||
return this.count;
|
||||
}
|
||||
public void setCount(long count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public static WxMpGroup fromJson(String json) {
|
||||
return WxMpGsonBuilder.create().fromJson(json, WxMpGroup.class);
|
||||
}
|
||||
|
||||
public String toJson() {
|
||||
return WxMpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "WxMpGroup [id=" + this.id + ", name=" + this.name + ", count=" + this.count + "]";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,26 +1,23 @@
|
||||
package me.chanjar.weixin.mp.bean;
|
||||
|
||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
||||
|
||||
/**
|
||||
* 分组群发的消息
|
||||
* 按标签群发的消息
|
||||
*
|
||||
* @author chanjarster
|
||||
*/
|
||||
public class WxMpMassGroupMessage implements Serializable {
|
||||
public class WxMpMassTagMessage implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -6625914040986749286L;
|
||||
private Long groupId;
|
||||
private Long tagId;
|
||||
private String msgtype;
|
||||
private String content;
|
||||
private String mediaId;
|
||||
|
||||
public WxMpMassGroupMessage() {
|
||||
public WxMpMassTagMessage() {
|
||||
super();
|
||||
}
|
||||
|
||||
@@ -64,16 +61,16 @@ public class WxMpMassGroupMessage implements Serializable {
|
||||
return WxMpGsonBuilder.INSTANCE.create().toJson(this);
|
||||
}
|
||||
|
||||
public Long getGroupId() {
|
||||
return this.groupId;
|
||||
public Long getTagId() {
|
||||
return this.tagId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 如果不设置则就意味着发给所有用户
|
||||
* @param groupId
|
||||
* @param tagId
|
||||
*/
|
||||
public void setGroupId(Long groupId) {
|
||||
this.groupId = groupId;
|
||||
public void setTagId(Long tagId) {
|
||||
this.tagId = tagId;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,7 +19,7 @@ public class WxUserTag {
|
||||
/**
|
||||
* id 标签id,由微信分配
|
||||
*/
|
||||
private Integer id;
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* name 标签名,UTF8编码
|
||||
@@ -47,11 +47,11 @@ public class WxUserTag {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user