【fix sonar】FileDownDTO、FileUploadDTO、LogDTO、Result、TemplateDTO文件
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ public class FileDownDTO implements Serializable {
|
||||
private String filePath;
|
||||
private String uploadpath;
|
||||
private String uploadType;
|
||||
private HttpServletResponse response;
|
||||
private transient HttpServletResponse response;
|
||||
|
||||
public FileDownDTO(){}
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ public class FileUploadDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4111953058578954386L;
|
||||
|
||||
private MultipartFile file;
|
||||
private transient MultipartFile file;
|
||||
|
||||
private String bizPath;
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ public class LogDTO implements Serializable {
|
||||
private Integer operateType;
|
||||
|
||||
/**登录用户 */
|
||||
private LoginUser loginUser;
|
||||
private transient LoginUser loginUser;
|
||||
|
||||
private String id;
|
||||
private String createBy;
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ public class TemplateDTO implements Serializable {
|
||||
/**
|
||||
* 模板参数
|
||||
*/
|
||||
protected Map<String, String> templateParam;
|
||||
protected transient Map<String, String> templateParam;
|
||||
|
||||
/**
|
||||
* 构造器 通过设置模板参数和模板编码 作为参数获取消息内容
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ public class Result<T> implements Serializable {
|
||||
* 返回数据对象 data
|
||||
*/
|
||||
@ApiModelProperty(value = "返回数据对象")
|
||||
private T result;
|
||||
private transient T result;
|
||||
|
||||
/**
|
||||
* 时间戳
|
||||
@@ -50,7 +50,7 @@ public class Result<T> implements Serializable {
|
||||
private long timestamp = System.currentTimeMillis();
|
||||
|
||||
public Result() {
|
||||
|
||||
// do other
|
||||
}
|
||||
|
||||
public static<T> Result<T> OK() {
|
||||
|
||||
Reference in New Issue
Block a user