Server API创建频道时,需要同时返回频道ID和频道密钥

This commit is contained in:
heavyrian2012
2025-04-25 23:10:43 +08:00
parent 4fa79bfeac
commit 7e92d1e0c5
4 changed files with 25 additions and 12 deletions
@@ -13,9 +13,11 @@ import cn.wildfirechat.proto.WFCMessage;
public class OutputCreateChannel {
private String targetId;
private String secret;
public OutputCreateChannel(String targetId) {
public OutputCreateChannel(String targetId, String secret) {
this.targetId = targetId;
this.secret = secret;
}
public String getTargetId() {
@@ -25,4 +27,12 @@ public class OutputCreateChannel {
public void setTargetId(String targetId) {
this.targetId = targetId;
}
public String getSecret() {
return secret;
}
public void setSecret(String secret) {
this.secret = secret;
}
}