【fix sonar】FileDownDTO、FileUploadDTO、LogDTO、Result、TemplateDTO文件

This commit is contained in:
梁琦涛
2023-03-03 11:47:07 +08:00
parent 6890f7304d
commit de53a72187
5 changed files with 10 additions and 10 deletions
@@ -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(){}
@@ -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;
@@ -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;
@@ -21,7 +21,7 @@ public class TemplateDTO implements Serializable {
/**
* 模板参数
*/
protected Map<String, String> templateParam;
protected transient Map<String, String> templateParam;
/**
* 构造器 通过设置模板参数和模板编码 作为参数获取消息内容
@@ -36,13 +36,13 @@ public class Result<T> implements Serializable {
*/
@ApiModelProperty(value = "返回代码")
private Integer code = 200;
/**
* 返回数据对象 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() {
@@ -98,7 +98,7 @@ public class Result<T> implements Serializable {
public static<T> Result<T> error(String msg) {
return error(CommonConstant.SC_INTERNAL_SERVER_ERROR_500, msg);
}
public static<T> Result<T> error(int code, String msg) {
Result<T> r = new Result<T>();
r.setCode(code);
@@ -117,4 +117,4 @@ public class Result<T> implements Serializable {
@JsonIgnore
private String onlTable;
}
}