mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #2612 【企业微信】增加获取企业活跃成员数和通讯录异步导出的接口
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package me.chanjar.weixin.cp.bean.export;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 异步导出参数
|
||||
*
|
||||
* @author zhongjun
|
||||
* @date 2022/4/21
|
||||
**/
|
||||
@Data
|
||||
public class WxCpExportRequest implements Serializable {
|
||||
private static final long serialVersionUID = -8127528999898984359L;
|
||||
|
||||
/**
|
||||
* base64encode的加密密钥,长度固定为43,base64decode之后即得到AESKey。加密方式采用AES-256-CBC方式,数据采用PKCS#7填充至32字节的倍数;IV初始向量大小为16字节,取AESKey前16字节,详见:<a href="http://tools.ietf.org/html/rfc2315">http://tools.ietf.org/html/rfc2315</a>
|
||||
*/
|
||||
@SerializedName("encoding_aeskey")
|
||||
private String encodingAesKey;
|
||||
|
||||
/**
|
||||
* 每块数据的部门数,支持范围[104,106],默认值为10^6
|
||||
*/
|
||||
@SerializedName("block_size")
|
||||
private Integer blockSize;
|
||||
|
||||
/**
|
||||
* 需要导出的标签
|
||||
* 导出标签成员时使用
|
||||
*/
|
||||
@SerializedName("tagid")
|
||||
private Integer tagId;
|
||||
|
||||
public String toJson() {
|
||||
return WxCpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package me.chanjar.weixin.cp.bean.export;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 异步导出响应
|
||||
*
|
||||
* @author zhongjun
|
||||
* @date 2022/4/21
|
||||
**/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxCpExportResult extends WxCpBaseResp {
|
||||
private static final long serialVersionUID = -8673839248829238966L;
|
||||
|
||||
/**
|
||||
* 任务状态:0-未处理,1-处理中,2-完成,3-异常失败
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
@SerializedName("data_list")
|
||||
private List<ExportData> dataList;
|
||||
|
||||
|
||||
@Data
|
||||
public static class ExportData {
|
||||
|
||||
/**
|
||||
* 数据下载链接,支持指定Range头部分段下载。有效期2个小时
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 密文数据大小
|
||||
*/
|
||||
private Integer size;
|
||||
|
||||
/**
|
||||
* 密文数据md5
|
||||
*/
|
||||
private String md5;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user