-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
253 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
*客户群「加入群聊」对象 | ||
* @author Jc | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
public class WxCpGroupJoinWayInfo implements Serializable { | ||
private static final long serialVersionUID = 5621905029624794129L; | ||
@SerializedName("join_way") | ||
private JoinWay joinWay; | ||
@Getter | ||
@Setter | ||
public static class JoinWay implements Serializable { | ||
private static final long serialVersionUID = 5621905029624794122L; | ||
|
||
/** | ||
* 联系方式的配置id | ||
*/ | ||
@SerializedName("config_id") | ||
private String configId; | ||
/** | ||
* 场景。 | ||
* 1 - 群的小程序插件 | ||
* 2 - 群的二维码插件 | ||
*/ | ||
@SerializedName("scene") | ||
private Integer scene; | ||
/** | ||
* 联系方式的备注信息,用于助记,超过30个字符将被截断 | ||
*/ | ||
@SerializedName("remark") | ||
private String remark; | ||
/** | ||
* 当群满了后,是否自动新建群。0-否;1-是。 默认为1 | ||
*/ | ||
@SerializedName("auto_create_room") | ||
private Integer autoCreateRoom; | ||
/** | ||
* 自动建群的群名前缀,当auto_create_room为1时有效。最长40个utf8字符 | ||
*/ | ||
@SerializedName("room_base_name") | ||
private String roomBaseName; | ||
/** | ||
* 自动建群的群起始序号,当auto_create_room为1时有效 | ||
*/ | ||
@SerializedName("room_base_id") | ||
private Integer roomBaseId; | ||
/** | ||
* 使用该配置的客户群ID列表,支持5个。 | ||
*/ | ||
@SerializedName("chat_id_list") | ||
private List<String> chatIdList; | ||
/** | ||
* 联系二维码的URL,仅在配置为群二维码时返回 | ||
*/ | ||
@SerializedName("qr_code") | ||
private String qrCode; | ||
/** | ||
企业自定义的state参数,用于区分不同的入群渠道。不超过30个UTF-8字符 | ||
如果有设置此参数,在调用获取客户群详情接口时会返回每个群成员对应的该参数值 | ||
*/ | ||
@SerializedName("state") | ||
private Integer state; | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
public static WxCpGroupJoinWayInfo.JoinWay fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.JoinWay.class); | ||
} | ||
} | ||
|
||
public static WxCpGroupJoinWayInfo fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
/** | ||
*客户群「加入群聊」配置处理结果 | ||
* @author Jc | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class WxCpGroupJoinWayResult extends WxCpBaseResp { | ||
private static final long serialVersionUID = 5621905029624794129L; | ||
@SerializedName("config_id") | ||
private String configId; | ||
|
||
public static WxCpGroupJoinWayResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayResult.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters