操作日志记录参数调整

This commit is contained in:
tianliyong 2022-12-05 19:18:57 +08:00
parent 5462c29869
commit 702959c6e0
2 changed files with 11 additions and 2 deletions

View File

@ -20,4 +20,13 @@ public class ServerFileUploadDto {
private String bizScene;
private String fileName;
private byte[] fileContent;
@Override
public String toString() {
return "ServerFileUploadDto{" +
"appCode='" + appCode + '\'' +
", bizScene='" + bizScene + '\'' +
", fileName='" + fileName + '\'' +
'}';
}
}

View File

@ -126,7 +126,7 @@ public class FileServiceImpl implements FileService {
public ServerFileUploadResponse upload(ServerFileUploadDto dto, ContextInfo.LiteSaasContext liteSaasContext) {
File ossFile = uploadFileAndGetFile(dto);
//操作日志记录
operateLog(JSON.toJSONString(dto), "", FILE_UPLOAD_CODE, FILE_UPLOAD_NAME, liteSaasContext);
operateLog(dto.toString(), "", FILE_UPLOAD_CODE, FILE_UPLOAD_NAME, liteSaasContext);
return setResponse(ossFile);
}
@ -134,7 +134,7 @@ public class FileServiceImpl implements FileService {
public FileInformationResponse uploadV2(String serviceName, ServerFileUploadDto request, ContextInfo.LiteSaasContext liteSaasContext) {
File ossFile = uploadFileAndGetFile(request);
//操作日志记录
operateLog(JSON.toJSONString(request), serviceName, FILE_UPLOAD_CODE, FILE_UPLOAD_NAME, liteSaasContext);
operateLog(request.toString(), serviceName, FILE_UPLOAD_CODE, FILE_UPLOAD_NAME, liteSaasContext);
return setFileInfoResp(ossFile);
}