Skip to content

Commit 5c45604

Browse files
committed
feat(0): [wcf-bmc]-修改文件下载接口为文件保存,实际是将文件保存至本服务指定目录
1 parent eb1f42c commit 5c45604

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

clients/java/wcf-bmc/src/main/java/com/wechat/ferry/controller/WeChatDllController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import com.wechat.ferry.entity.vo.request.WxPpWcfDatabaseSqlReq;
1515
import com.wechat.ferry.entity.vo.request.WxPpWcfDatabaseTableReq;
1616
import com.wechat.ferry.entity.vo.request.WxPpWcfDeleteGroupMemberReq;
17-
import com.wechat.ferry.entity.vo.request.WxPpWcfDownloadAttachReq;
17+
import com.wechat.ferry.entity.vo.request.WxPpWcfFileSaveReq;
1818
import com.wechat.ferry.entity.vo.request.WxPpWcfGroupMemberReq;
1919
import com.wechat.ferry.entity.vo.request.WxPpWcfInviteGroupMemberReq;
2020
import com.wechat.ferry.entity.vo.request.WxPpWcfPassFriendApplyReq;
@@ -270,7 +270,7 @@ public TResponse<Object> receiveTransfer(@Validated @RequestBody WxPpWcfReceiveT
270270
*/
271271
@ApiOperation(value = "文件保存至本机", notes = "fileSaveToLocal")
272272
@PostMapping(value = "/file/saveToLocal")
273-
public TResponse<String> fileSaveToLocal(@Validated @RequestBody WxPpWcfDownloadAttachReq request) {
273+
public TResponse<String> fileSaveToLocal(@Validated @RequestBody WxPpWcfFileSaveReq request) {
274274
String path = weChatDllService.fileSaveToLocal(request);
275275
return TResponse.ok(ResponseCodeEnum.SUCCESS, path);
276276
}
@@ -287,7 +287,7 @@ public TResponse<String> fileSaveToLocal(@Validated @RequestBody WxPpWcfDownload
287287
*/
288288
@ApiOperation(value = "登陆二维码", notes = "loginQrCode")
289289
@PostMapping(value = "/loginQrCode")
290-
public TResponse<Object> loginQrCode(@Validated @RequestBody WxPpWcfDownloadAttachReq request) {
290+
public TResponse<Object> loginQrCode(@Validated @RequestBody WxPpWcfFileSaveReq request) {
291291
String path = weChatDllService.loginQrCode();
292292
return TResponse.ok(ResponseCodeEnum.SUCCESS, path);
293293
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
import lombok.Data;
88

99
/**
10-
* 请求入参-下载附件信息
10+
* 请求入参-文件保存
1111
*
1212
* @author wmz
1313
* @date 2025-05-02
1414
*/
1515
@Data
16-
@ApiModel(value = "wxPpWcfDownloadAttachReq", description = "个微WCF下载附件请求入参")
17-
public class WxPpWcfDownloadAttachReq {
16+
@ApiModel(value = "wxPpWcfFileSaveReq", description = "个微WCF文件保存请求入参")
17+
public class WxPpWcfFileSaveReq {
1818

1919
/**
2020
* 消息编号

clients/java/wcf-bmc/src/main/java/com/wechat/ferry/service/WeChatDllService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import com.wechat.ferry.entity.vo.request.WxPpWcfDatabaseSqlReq;
77
import com.wechat.ferry.entity.vo.request.WxPpWcfDatabaseTableReq;
88
import com.wechat.ferry.entity.vo.request.WxPpWcfDeleteGroupMemberReq;
9-
import com.wechat.ferry.entity.vo.request.WxPpWcfDownloadAttachReq;
9+
import com.wechat.ferry.entity.vo.request.WxPpWcfFileSaveReq;
1010
import com.wechat.ferry.entity.vo.request.WxPpWcfGroupMemberReq;
1111
import com.wechat.ferry.entity.vo.request.WxPpWcfInviteGroupMemberReq;
1212
import com.wechat.ferry.entity.vo.request.WxPpWcfPassFriendApplyReq;
@@ -497,7 +497,7 @@ WxPpWcfSendRichTextMsgResp sendRichTextMsg(String recipient, String name, String
497497
* @author wmz
498498
* @date 2025-05-02
499499
*/
500-
String fileSaveToLocal(WxPpWcfDownloadAttachReq request);
500+
String fileSaveToLocal(WxPpWcfFileSaveReq request);
501501

502502
/**
503503
* 文件保存至本机

clients/java/wcf-bmc/src/main/java/com/wechat/ferry/service/impl/WeChatDllServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import com.wechat.ferry.entity.vo.request.WxPpWcfDatabaseSqlReq;
2626
import com.wechat.ferry.entity.vo.request.WxPpWcfDatabaseTableReq;
2727
import com.wechat.ferry.entity.vo.request.WxPpWcfDeleteGroupMemberReq;
28-
import com.wechat.ferry.entity.vo.request.WxPpWcfDownloadAttachReq;
28+
import com.wechat.ferry.entity.vo.request.WxPpWcfFileSaveReq;
2929
import com.wechat.ferry.entity.vo.request.WxPpWcfGroupMemberReq;
3030
import com.wechat.ferry.entity.vo.request.WxPpWcfInviteGroupMemberReq;
3131
import com.wechat.ferry.entity.vo.request.WxPpWcfPassFriendApplyReq;
@@ -649,7 +649,7 @@ public String receiveTransfer(String weChatUid, String transferId, String transa
649649
}
650650

651651
@Override
652-
public String fileSaveToLocal(WxPpWcfDownloadAttachReq request) {
652+
public String fileSaveToLocal(WxPpWcfFileSaveReq request) {
653653
long startTime = System.currentTimeMillis();
654654
// 公共校验
655655
checkClientStatus();
@@ -696,7 +696,7 @@ public String fileSaveToLocal(Long msgId, String extra, String thumbnailUrl, Str
696696
if (ObjectUtils.isEmpty(timeout)) {
697697
timeout = 30;
698698
}
699-
WxPpWcfDownloadAttachReq request = new WxPpWcfDownloadAttachReq();
699+
WxPpWcfFileSaveReq request = new WxPpWcfFileSaveReq();
700700
request.setMsgId(msgId);
701701
request.setExtra(extra);
702702
request.setThumbnailUrl(thumbnailUrl);

0 commit comments

Comments
 (0)