Skip to content

Commit 8bd41d9

Browse files
authored
fix: sendGroupMsgRequest toAccount type modify (#205)
1 parent 5e7e1a3 commit 8bd41d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/io/github/doocs/im/model/request/SendGroupMsgRequest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class SendGroupMsgRequest extends GenericRequest implements Serializable
9393
* 支持群类型 Private、Public、ChatRoom
9494
*/
9595
@JsonProperty("To_Account")
96-
private String toAccount;
96+
private List<String> toAccount;
9797

9898
/**
9999
* 话题的 ID,仅社群支持此选项
@@ -125,7 +125,7 @@ public SendGroupMsgRequest(String groupId, Long random, List<TIMMsgElement> msgB
125125
public SendGroupMsgRequest(String groupId, Long random, String msgPriority, List<TIMMsgElement> msgBody,
126126
String fromAccount, OfflinePushInfo offlinePushInfo, List<String> forbidCallbackControl,
127127
Integer onlineOnlyFlag, List<String> sendMsgControl, String cloudCustomData,
128-
Integer supportMessageExtension, String toAccount, String topicId) {
128+
Integer supportMessageExtension, List<String> toAccount, String topicId) {
129129
this.groupId = groupId;
130130
this.random = random;
131131
this.msgPriority = msgPriority;
@@ -141,7 +141,7 @@ public SendGroupMsgRequest(String groupId, Long random, String msgPriority, List
141141
this.topicId = topicId;
142142
}
143143

144-
public SendGroupMsgRequest(String groupId, Long random, String msgPriority, List<TIMMsgElement> msgBody, String fromAccount, OfflinePushInfo offlinePushInfo, List<String> forbidCallbackControl, Integer onlineOnlyFlag, List<String> sendMsgControl, String cloudCustomData, Integer supportMessageExtension, String toAccount, String topicId, Integer needReadReceipt, List<GroupAtInfo> groupAtInfos) {
144+
public SendGroupMsgRequest(String groupId, Long random, String msgPriority, List<TIMMsgElement> msgBody, String fromAccount, OfflinePushInfo offlinePushInfo, List<String> forbidCallbackControl, Integer onlineOnlyFlag, List<String> sendMsgControl, String cloudCustomData, Integer supportMessageExtension, List<String> toAccount, String topicId, Integer needReadReceipt, List<GroupAtInfo> groupAtInfos) {
145145
this.groupId = groupId;
146146
this.random = random;
147147
this.msgPriority = msgPriority;
@@ -269,11 +269,11 @@ public void setSupportMessageExtension(Integer supportMessageExtension) {
269269
this.supportMessageExtension = supportMessageExtension;
270270
}
271271

272-
public String getToAccount() {
272+
public List<String> getToAccount() {
273273
return toAccount;
274274
}
275275

276-
public void setToAccount(String toAccount) {
276+
public void setToAccount(List<String> toAccount) {
277277
this.toAccount = toAccount;
278278
}
279279

@@ -314,7 +314,7 @@ public static final class Builder {
314314
private List<String> sendMsgControl;
315315
private String cloudCustomData;
316316
private Integer supportMessageExtension;
317-
private String toAccount;
317+
private List<String> toAccount;
318318
private String topicId;
319319
private Integer needReadReceipt;
320320

@@ -385,7 +385,7 @@ public Builder supportMessageExtension(Integer supportMessageExtension) {
385385
return this;
386386
}
387387

388-
public Builder toAccount(String toAccount) {
388+
public Builder toAccount(List<String> toAccount) {
389389
this.toAccount = toAccount;
390390
return this;
391391
}

0 commit comments

Comments
 (0)