File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .mp .bean ;
2
2
3
- import me .chanjar .weixin .mp .util .json .WxMpGsonBuilder ;
4
-
5
3
import java .io .Serializable ;
6
4
import java .util .ArrayList ;
7
5
import java .util .List ;
8
6
7
+ import me .chanjar .weixin .mp .util .json .WxMpGsonBuilder ;
8
+
9
9
/**
10
- * OpenId列表群发的消息
10
+ * openid列表群发的消息
11
11
*
12
12
* @author chanjarster
13
13
*/
@@ -64,17 +64,26 @@ public String toJson() {
64
64
}
65
65
66
66
/**
67
- * OpenId列表 ,最多支持10,000个
67
+ * openid列表 ,最多支持10,000个
68
68
*/
69
69
public List <String > getToUsers () {
70
70
return this .toUsers ;
71
71
}
72
72
73
73
/**
74
- * 添加OpenId ,最多支持10,000个
75
- * @param openId
74
+ * 添加openid ,最多支持10,000个
75
+ * @param openid
76
76
*/
77
- public void addUser (String openId ) {
78
- this .toUsers .add (openId );
77
+ public void addUser (String openid ) {
78
+ this .toUsers .add (openid );
79
79
}
80
+
81
+ /**
82
+ * 提供set方法,方便客户端直接设置所有群发对象的openid列表
83
+ * @param toUsers
84
+ */
85
+ public void setToUsers (List <String > toUsers ) {
86
+ this .toUsers = toUsers ;
87
+ }
88
+
80
89
}
You can’t perform that action at this time.
0 commit comments