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 11package me .chanjar .weixin .mp .bean ;
22
3- import me .chanjar .weixin .mp .util .json .WxMpGsonBuilder ;
4-
53import java .io .Serializable ;
64import java .util .ArrayList ;
75import java .util .List ;
86
7+ import me .chanjar .weixin .mp .util .json .WxMpGsonBuilder ;
8+
99/**
10- * OpenId列表群发的消息
10+ * openid列表群发的消息
1111 *
1212 * @author chanjarster
1313 */
@@ -64,17 +64,26 @@ public String toJson() {
6464 }
6565
6666 /**
67- * OpenId列表 ,最多支持10,000个
67+ * openid列表 ,最多支持10,000个
6868 */
6969 public List <String > getToUsers () {
7070 return this .toUsers ;
7171 }
7272
7373 /**
74- * 添加OpenId ,最多支持10,000个
75- * @param openId
74+ * 添加openid ,最多支持10,000个
75+ * @param openid
7676 */
77- public void addUser (String openId ) {
78- this .toUsers .add (openId );
77+ public void addUser (String openid ) {
78+ this .toUsers .add (openid );
7979 }
80+
81+ /**
82+ * 提供set方法,方便客户端直接设置所有群发对象的openid列表
83+ * @param toUsers
84+ */
85+ public void setToUsers (List <String > toUsers ) {
86+ this .toUsers = toUsers ;
87+ }
88+
8089}
You can’t perform that action at this time.
0 commit comments