操作日志记录参数调整
This commit is contained in:
parent
5462c29869
commit
702959c6e0
@ -20,4 +20,13 @@ public class ServerFileUploadDto {
|
|||||||
private String bizScene;
|
private String bizScene;
|
||||||
private String fileName;
|
private String fileName;
|
||||||
private byte[] fileContent;
|
private byte[] fileContent;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "ServerFileUploadDto{" +
|
||||||
|
"appCode='" + appCode + '\'' +
|
||||||
|
", bizScene='" + bizScene + '\'' +
|
||||||
|
", fileName='" + fileName + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -126,7 +126,7 @@ public class FileServiceImpl implements FileService {
|
|||||||
public ServerFileUploadResponse upload(ServerFileUploadDto dto, ContextInfo.LiteSaasContext liteSaasContext) {
|
public ServerFileUploadResponse upload(ServerFileUploadDto dto, ContextInfo.LiteSaasContext liteSaasContext) {
|
||||||
File ossFile = uploadFileAndGetFile(dto);
|
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);
|
return setResponse(ossFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ public class FileServiceImpl implements FileService {
|
|||||||
public FileInformationResponse uploadV2(String serviceName, ServerFileUploadDto request, ContextInfo.LiteSaasContext liteSaasContext) {
|
public FileInformationResponse uploadV2(String serviceName, ServerFileUploadDto request, ContextInfo.LiteSaasContext liteSaasContext) {
|
||||||
File ossFile = uploadFileAndGetFile(request);
|
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);
|
return setFileInfoResp(ossFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user