🎨 #3437 【企业微信】 微盘文件管理相关接口移除过期的userid参数

This commit is contained in:
Binary Wang 2024-12-14 00:14:58 +08:00
parent f70a305aea
commit a4e3af0eb6
8 changed files with 60 additions and 80 deletions

View File

@ -9,7 +9,7 @@ import java.util.List;
/** /**
* 企业微信微盘相关接口. * 企业微信微盘相关接口.
* https://developer.work.weixin.qq.com/document/path/93654 * <a href="https://developer.work.weixin.qq.com/document/path/93654">...</a>
* *
* @author <a href="https://github.com/0katekate0">Wang_Wong</a> created on 2022-04-22 * @author <a href="https://github.com/0katekate0">Wang_Wong</a> created on 2022-04-22
*/ */
@ -20,7 +20,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于在微盘内新建空间可以指定人创建空间 * 该接口用于在微盘内新建空间可以指定人创建空间
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_create?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_create?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 新建空间对应请求参数 * @param request 新建空间对应请求参数
* @return spaceid 空间id * @return spaceid 空间id
@ -33,7 +33,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于重命名已有空间接收userid参数以空间管理员身份来重命名 * 该接口用于重命名已有空间接收userid参数以空间管理员身份来重命名
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_rename?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_rename?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 重命名空间的请求参数 * @param request 重命名空间的请求参数
* @return wx cp base resp * @return wx cp base resp
@ -46,7 +46,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于解散已有空间需要以空间管理员身份来解散 * 该接口用于解散已有空间需要以空间管理员身份来解散
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_dismiss?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_dismiss?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId the user id * @param userId the user id
* @param spaceId the space id * @param spaceId the space id
@ -60,7 +60,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于获取空间成员列表信息权限等信息 * 该接口用于获取空间成员列表信息权限等信息
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_info?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_info?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId the user id * @param userId the user id
* @param spaceId the space id * @param spaceId the space id
@ -74,7 +74,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于对指定空间添加成员/部门可一次性添加多个 * 该接口用于对指定空间添加成员/部门可一次性添加多个
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_add?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_add?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 添加成员/部门请求参数 * @param request 添加成员/部门请求参数
* @return wx cp base resp * @return wx cp base resp
@ -87,7 +87,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于对指定空间移除成员/部门操作者需要有移除权限 * 该接口用于对指定空间移除成员/部门操作者需要有移除权限
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_del?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_acl_del?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 移除成员/部门请求参数 * @param request 移除成员/部门请求参数
* @return wx cp base resp * @return wx cp base resp
@ -100,7 +100,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于修改空间权限需要传入userid修改权限范围继承传入用户的权限范围 * 该接口用于修改空间权限需要传入userid修改权限范围继承传入用户的权限范围
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_setting?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_setting?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 权限管理请求参数 * @param request 权限管理请求参数
* @return wx cp base resp * @return wx cp base resp
@ -113,7 +113,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于获取空间邀请分享链接 * 该接口用于获取空间邀请分享链接
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_share?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/space_share?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId the user id * @param userId the user id
* @param spaceId the space id * @param spaceId the space id
@ -127,7 +127,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于获取指定地址下的文件列表 * 该接口用于获取指定地址下的文件列表
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_list?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_list?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 获取文件列表请求参数 * @param request 获取文件列表请求参数
* @return wx cp file list * @return wx cp file list
@ -140,7 +140,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于向微盘中的指定位置上传文件 * 该接口用于向微盘中的指定位置上传文件
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_upload?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_upload?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 上传文件请求参数 * @param request 上传文件请求参数
* @return wx cp file upload * @return wx cp file upload
@ -153,54 +153,58 @@ public interface WxCpOaWeDriveService {
* 该接口用于下载文件请求的userid需有下载权限 * 该接口用于下载文件请求的userid需有下载权限
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_download?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_download?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId the user id * @param fileId 文件fileid只支持下载普通文件不支持下载文件夹或微文档
* @param fileId the file id * @param selectedTicket 微盘和文件选择器jsapi返回的selectedTicket若填此参数则不需要填fileid
* @return wx cp file download * @return {
* "errcode": 0,
* "errmsg": "ok",
* "download_url": "DOWNLOAD_URL",
* "cookie_name": "COOKIE_NAME",
* "cookie_value": "COOKIE_VALUE"
* }
* @throws WxErrorException the wx error exception * @throws WxErrorException the wx error exception
*/ */
WxCpFileDownload fileDownload(@NonNull String userId, @NonNull String fileId) throws WxErrorException; WxCpFileDownload fileDownload( String fileId, String selectedTicket) throws WxErrorException;
/** /**
* 重命名文件 * 重命名文件
* 该接口用于对指定文件进行重命名 * 该接口用于对指定文件进行重命名
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_rename?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_rename?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId the user id
* @param fileId the file id * @param fileId the file id
* @param newName the new name * @param newName the new name
* @return wx cp file rename * @return wx cp file rename
* @throws WxErrorException the wx error exception * @throws WxErrorException the wx error exception
*/ */
WxCpFileRename fileRename(@NonNull String userId, @NonNull String fileId, @NonNull String newName) throws WxErrorException; WxCpFileRename fileRename(@NonNull String fileId, @NonNull String newName) throws WxErrorException;
/** /**
* 新建文件/文档 * 新建文件/文档
* 该接口用于在微盘指定位置新建文件微文档 * 该接口用于在微盘指定位置新建文件文档更多文档接口能力可见文档API接口说明
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_create?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_create?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId 操作者userid
* @param spaceId 空间spaceid * @param spaceId 空间spaceid
* @param fatherId 父目录fileid, 在根目录时为空间spaceid * @param fatherId 父目录fileid, 在根目录时为空间spaceid
* @param fileType 文件类型, 1:文件夹 3:文档(文档) 4:文档(表格) * @param fileType 文件类型, 1:文件夹 3:文档(文档) 4:文档(表格)
* @param fileName 文件名字 * @param fileName 文件名字注意文件名最多填255个字符, 英文算1个, 汉字算2个
* @return wx cp file create * @return wx cp file create
* @throws WxErrorException the wx error exception * @throws WxErrorException the wx error exception
*/ */
WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, WxCpFileCreate fileCreate(@NonNull String spaceId, @NonNull String fatherId, @NonNull Integer fileType,
@NonNull String fatherId, @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException; @NonNull String fileName) throws WxErrorException;
/** /**
* 移动文件 * 移动文件
* 该接口用于将文件移动到指定位置 * 该接口用于将文件移动到指定位置
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_move?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_move?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 移动文件的请求参数 * @param request 移动文件的请求参数
* @return wx cp file move * @return wx cp file move
@ -213,21 +217,33 @@ public interface WxCpOaWeDriveService {
* 该接口用于删除指定文件 * 该接口用于删除指定文件
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_delete?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_delete?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId 操作者userid * @param fileIds 文件fileid列表
* @param fileId 文件fileid列表
* @return wx cp base resp * @return wx cp base resp
* @throws WxErrorException the wx error exception * @throws WxErrorException the wx error exception
*/ */
WxCpBaseResp fileDelete(@NonNull String userId, @NonNull List<String> fileId) throws WxErrorException; WxCpBaseResp fileDelete(@NonNull List<String> fileIds) throws WxErrorException;
/**
* 文件信息
* 该接口用于获取指定文件的信息
* <p>
* 请求方式POSTHTTPS
* 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_info?access_token=ACCESS_TOKEN">...</a>
*
* @param fileId the file id
* @return wx cp file info
* @throws WxErrorException the wx error exception
*/
WxCpFileInfo fileInfo(@NonNull String fileId) throws WxErrorException;
/** /**
* 新增指定人 * 新增指定人
* 该接口用于对指定文件添加指定人/部门 * 该接口用于对指定文件添加指定人/部门
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_add?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_add?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 新增指定人请求参数 * @param request 新增指定人请求参数
* @return wx cp base resp * @return wx cp base resp
@ -240,7 +256,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于删除指定文件的指定人/部门 * 该接口用于删除指定文件的指定人/部门
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_del?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_acl_del?access_token=ACCESS_TOKEN">...</a>
* *
* @param request 请求参数 * @param request 请求参数
* @return wx cp base resp * @return wx cp base resp
@ -253,7 +269,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于文件的分享设置 * 该接口用于文件的分享设置
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_setting?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_setting?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId the user id * @param userId the user id
* @param fileId the file id * @param fileId the file id
@ -269,7 +285,7 @@ public interface WxCpOaWeDriveService {
* 该接口用于获取文件的分享链接 * 该接口用于获取文件的分享链接
* <p> * <p>
* 请求方式POSTHTTPS * 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_share?access_token=ACCESS_TOKEN * 请求地址: <a href="https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_share?access_token=ACCESS_TOKEN">...</a>
* *
* @param userId the user id * @param userId the user id
* @param fileId the file id * @param fileId the file id
@ -278,18 +294,4 @@ public interface WxCpOaWeDriveService {
*/ */
WxCpFileShare fileShare(@NonNull String userId, @NonNull String fileId) throws WxErrorException; WxCpFileShare fileShare(@NonNull String userId, @NonNull String fileId) throws WxErrorException;
/**
* 文件信息
* 该接口用于获取指定文件的信息
* <p>
* 请求方式POSTHTTPS
* 请求地址: https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_info?access_token=ACCESS_TOKEN
*
* @param userId the user id
* @param fileId the file id
* @return wx cp file info
* @throws WxErrorException the wx error exception
*/
WxCpFileInfo fileInfo(@NonNull String userId, @NonNull String fileId) throws WxErrorException;
} }

View File

@ -114,10 +114,9 @@ public class WxCpOaWeDriveServiceImpl implements WxCpOaWeDriveService {
} }
@Override @Override
public WxCpFileRename fileRename(@NonNull String userId, @NonNull String fileId, @NonNull String newName) throws WxErrorException { public WxCpFileRename fileRename(@NonNull String fileId, @NonNull String newName) throws WxErrorException {
String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_RENAME); String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_RENAME);
JsonObject jsonObject = new JsonObject(); JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("userid", userId);
jsonObject.addProperty("fileid", fileId); jsonObject.addProperty("fileid", fileId);
jsonObject.addProperty("new_name", newName); jsonObject.addProperty("new_name", newName);
String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
@ -125,11 +124,10 @@ public class WxCpOaWeDriveServiceImpl implements WxCpOaWeDriveService {
} }
@Override @Override
public WxCpFileCreate fileCreate(@NonNull String userId, @NonNull String spaceId, @NonNull String fatherId, public WxCpFileCreate fileCreate(@NonNull String spaceId, @NonNull String fatherId,
@NonNull Integer fileType, @NonNull String fileName) throws WxErrorException { @NonNull Integer fileType, @NonNull String fileName) throws WxErrorException {
String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_CREATE); String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_CREATE);
JsonObject jsonObject = new JsonObject(); JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("userid", userId);
jsonObject.addProperty("spaceid", spaceId); jsonObject.addProperty("spaceid", spaceId);
jsonObject.addProperty("fatherid", fatherId); jsonObject.addProperty("fatherid", fatherId);
jsonObject.addProperty("file_type", fileType); jsonObject.addProperty("file_type", fileType);
@ -146,9 +144,9 @@ public class WxCpOaWeDriveServiceImpl implements WxCpOaWeDriveService {
} }
@Override @Override
public WxCpBaseResp fileDelete(@NonNull String userId, @NonNull List<String> fileId) throws WxErrorException { public WxCpBaseResp fileDelete(@NonNull List<String> fileIds) throws WxErrorException {
String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_DELETE); String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_DELETE);
WxCpFileDeleteRequest request = new WxCpFileDeleteRequest(userId, fileId); WxCpFileDeleteRequest request = new WxCpFileDeleteRequest(fileIds);
String responseContent = this.cpService.post(apiUrl, request.toJson()); String responseContent = this.cpService.post(apiUrl, request.toJson());
return WxCpBaseResp.fromJson(responseContent); return WxCpBaseResp.fromJson(responseContent);
} }
@ -193,10 +191,9 @@ public class WxCpOaWeDriveServiceImpl implements WxCpOaWeDriveService {
} }
@Override @Override
public WxCpFileInfo fileInfo(@NonNull String userId, @NonNull String fileId) throws WxErrorException { public WxCpFileInfo fileInfo(@NonNull String fileId) throws WxErrorException {
String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_INFO); String apiUrl = this.cpService.getWxCpConfigStorage().getApiUrl(FILE_INFO);
JsonObject jsonObject = new JsonObject(); JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("userid", userId);
jsonObject.addProperty("fileid", fileId); jsonObject.addProperty("fileid", fileId);
String responseContent = this.cpService.post(apiUrl, jsonObject.toString()); String responseContent = this.cpService.post(apiUrl, jsonObject.toString());
return WxCpFileInfo.fromJson(responseContent); return WxCpFileInfo.fromJson(responseContent);

View File

@ -22,9 +22,6 @@ import java.util.List;
public class WxCpFileDeleteRequest implements Serializable { public class WxCpFileDeleteRequest implements Serializable {
private static final long serialVersionUID = -4960239393895754138L; private static final long serialVersionUID = -4960239393895754138L;
@SerializedName("userid")
private String userId;
@SerializedName("fileid") @SerializedName("fileid")
private List<String> fileId; private List<String> fileId;

View File

@ -35,8 +35,4 @@ public class WxCpFileDownload extends WxCpBaseResp implements Serializable {
return WxCpGsonBuilder.create().fromJson(json, WxCpFileDownload.class); return WxCpGsonBuilder.create().fromJson(json, WxCpFileDownload.class);
} }
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
} }

View File

@ -21,9 +21,6 @@ import java.io.Serializable;
public class WxCpFileListRequest implements Serializable { public class WxCpFileListRequest implements Serializable {
private static final long serialVersionUID = -4960239393895754138L; private static final long serialVersionUID = -4960239393895754138L;
@SerializedName("userid")
private String userId;
@SerializedName("spaceid") @SerializedName("spaceid")
private String spaceId; private String spaceId;

View File

@ -21,12 +21,6 @@ import java.io.Serializable;
public class WxCpFileMoveRequest implements Serializable { public class WxCpFileMoveRequest implements Serializable {
private static final long serialVersionUID = -4960239393895754138L; private static final long serialVersionUID = -4960239393895754138L;
/**
* 操作者userid
*/
@SerializedName("userid")
private String userId;
/** /**
* 如果移动到的目标目录与需要移动的文件重名时是否覆盖 * 如果移动到的目标目录与需要移动的文件重名时是否覆盖
* true:重名文件覆盖 * true:重名文件覆盖

View File

@ -21,9 +21,6 @@ import java.io.Serializable;
public class WxCpFileUploadRequest implements Serializable { public class WxCpFileUploadRequest implements Serializable {
private static final long serialVersionUID = -4960239393895754138L; private static final long serialVersionUID = -4960239393895754138L;
@SerializedName("userid")
private String userId;
@SerializedName("spaceid") @SerializedName("spaceid")
private String spaceId; private String spaceId;

View File

@ -110,13 +110,13 @@ public class WxCpOaWeDriveServiceTest {
*/ */
ArrayList<String> fileIds = Lists.newArrayList(); ArrayList<String> fileIds = Lists.newArrayList();
fileIds.add(fileId); fileIds.add(fileId);
WxCpBaseResp fileDelete = cpService.getOaWeDriveService().fileDelete(uId, fileIds); WxCpBaseResp fileDelete = cpService.getOaWeDriveService().fileDelete(fileIds);
log.info("删除文件数据为:{}", fileDelete.toJson()); log.info("删除文件数据为:{}", fileDelete.toJson());
/** /**
* 文件信息 * 文件信息
*/ */
WxCpFileInfo fileInfo = cpService.getOaWeDriveService().fileInfo(uId, fileId); WxCpFileInfo fileInfo = cpService.getOaWeDriveService().fileInfo(fileId);
log.info("fileInfo数据为{}", fileInfo.toJson()); log.info("fileInfo数据为{}", fileInfo.toJson());
/** /**
@ -134,7 +134,7 @@ public class WxCpOaWeDriveServiceTest {
/** /**
* 新建文件/微文档 * 新建文件/微文档
*/ */
WxCpFileCreate fileCreate = cpService.getOaWeDriveService().fileCreate(uId, spId, spId, 3, "新建微文档1"); WxCpFileCreate fileCreate = cpService.getOaWeDriveService().fileCreate(spId, spId, 3, "新建微文档1");
log.info("新建文件/微文档:{}", fileCreate.toJson()); log.info("新建文件/微文档:{}", fileCreate.toJson());
/** /**