1
0
mirror of synced 2026-02-09 20:39:24 +08:00

🆕 #2721 【企业微信】增加家校通讯录-变更事件类型的回调消息支持

This commit is contained in:
0katekate0
2022-06-30 14:18:23 +08:00
committed by Binary Wang
parent ba13eef750
commit a17d8ae5a2
4 changed files with 201 additions and 4 deletions

View File

@@ -5,9 +5,9 @@ import lombok.extern.slf4j.Slf4j;
import java.util.List;
/**
* 企业微信会话内容存档Finance类
* 注意:
* 此类必须配置在com.tencent.wework路径底下否则会报错
* java.lang.UnsatisfiedLinkError: com.xxx.Finance.NewSdk()
* 此类必须配置在com.tencent.wework路径底下否则会报错java.lang.UnsatisfiedLinkError: com.xxx.Finance.NewSdk()
* <p>
* QJAVA版本的sdk报错UnsatisfiedLinkError
* A请检查是否修改了sdk的包名。
@@ -15,7 +15,7 @@ import java.util.List;
* 官方文档:
* https://developer.work.weixin.qq.com/document/path/91552
*
* @author Wang_Wong
* @author <a href="https://github.com/0katekate0">Wang_Wong</a>
* @date 2022-01-17
*/
@Slf4j

View File

@@ -94,7 +94,7 @@ public class WxCpConsts {
public static final String TASKCARD_CLICK = "taskcard_click";
/**
* 企业成员添加外部联系人事件推送
* 企业成员添加外部联系人事件推送 & 会话存档客户同意进行聊天内容存档事件回调事件
*/
public static final String CHANGE_EXTERNAL_CONTACT = "change_external_contact";
@@ -143,6 +143,56 @@ public class WxCpConsts {
*/
public static final String DELETE_SCHEDULE = "delete_schedule";
/**
* 家校通讯录事件
*/
public static final String CHANGE_SCHOOL_CONTACT = "change_school_contact";
/**
* 产生会话回调事件
*/
public static final String MSGAUDIT_NOTIFY = "msgaudit_notify";
}
/**
* 会话存档事件CHANGE_TYPE
* https://developer.work.weixin.qq.com/document/path/92005
*/
@UtilityClass
public static class MsgAuditChangeType {
public static final String MSG_AUDIT_APPROVED = "msg_audit_approved";
}
/**
* 家校通讯录变更事件CHANGE_TYPE
*/
@UtilityClass
public static class SchoolContactChangeType {
/**
* 部门变更事件
* https://developer.work.weixin.qq.com/document/path/92052
*/
public static final String CREATE_DEPARTMENT = "create_department";
public static final String UPDATE_DEPARTMENT = "update_department";
public static final String DELETE_DEPARTMENT = "delete_department";
/**
* 成员变更事件
* https://developer.work.weixin.qq.com/document/path/92032
*/
public static final String CREATE_STUDENT = "create_student";
public static final String UPDATE_STUDENT = "update_student";
public static final String DELETE_STUDENT = "delete_student";
public static final String CREATE_PARENT = "create_parent";
public static final String UPDATE_PARENT = "update_parent";
public static final String DELETE_PARENT = "delete_parent";
public static final String SUBSCRIBE = "subscribe";
public static final String UNSUBSCRIBE = "unsubscribe";
}
/**