mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 22:11:40 +08:00
按openid群发消息时提供setToUsers方法,方便客户端直接设置所有群发对象的openid列表
This commit is contained in:
parent
1bd4f681b6
commit
f478ceb245
@ -1,13 +1,13 @@
|
|||||||
package me.chanjar.weixin.mp.bean;
|
package me.chanjar.weixin.mp.bean;
|
||||||
|
|
||||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OpenId列表群发的消息
|
* openid列表群发的消息
|
||||||
*
|
*
|
||||||
* @author chanjarster
|
* @author chanjarster
|
||||||
*/
|
*/
|
||||||
@ -64,17 +64,26 @@ public class WxMpMassOpenIdsMessage implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OpenId列表,最多支持10,000个
|
* openid列表,最多支持10,000个
|
||||||
*/
|
*/
|
||||||
public List<String> getToUsers() {
|
public List<String> getToUsers() {
|
||||||
return this.toUsers;
|
return this.toUsers;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加OpenId,最多支持10,000个
|
* 添加openid,最多支持10,000个
|
||||||
* @param openId
|
* @param openid
|
||||||
*/
|
*/
|
||||||
public void addUser(String openId) {
|
public void addUser(String openid) {
|
||||||
this.toUsers.add(openId);
|
this.toUsers.add(openid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提供set方法,方便客户端直接设置所有群发对象的openid列表
|
||||||
|
* @param toUsers
|
||||||
|
*/
|
||||||
|
public void setToUsers(List<String> toUsers) {
|
||||||
|
this.toUsers = toUsers;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user