| | |
| | | } |
| | | ) |
| | | JSONObject fileDelete(@DataVariable("accessToken") String accessToken, @JSONBody String param); |
| | | |
| | | /** |
| | | * 获取下载路径 |
| | | * @param accessToken |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @Post( |
| | | url = "https://qyapi.weixin.qq.com/cgi-bin/wedrive/file_download?access_token=${accessToken}", |
| | | headers = { |
| | | "Content-Type: application/json" |
| | | } |
| | | ) |
| | | JSONObject getDownloadUrl(@DataVariable("accessToken") String accessToken, @JSONBody String param); |
| | | } |
| | |
| | | |
| | | return corpMpSpaceApi.fileUploadFinish(accessToken, param.toJSONString()); |
| | | } |
| | | |
| | | /** |
| | | * 获取下载路径 |
| | | * @param corpMpSpaceApi |
| | | * @param accessToken |
| | | * @param fileId |
| | | * @return |
| | | */ |
| | | public static JSONObject getDownloadUrl(CorpMpSpaceApi corpMpSpaceApi, String accessToken, String fileId){ |
| | | JSONObject param = new JSONObject(); |
| | | param.put("fileid", fileId); |
| | | |
| | | return corpMpSpaceApi.getDownloadUrl(accessToken, param.toJSONString()); |
| | | } |
| | | } |