refactor(configuration): AmisRespone 的 metadata 增加默认值
防止 NPE
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.lanyuanxiaoyao.service.configuration.entity;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -64,7 +65,7 @@ public class AmisResponse {
|
||||
public static final class Builder {
|
||||
private Integer status = 0;
|
||||
private String message = "";
|
||||
private Map<String, Object> data;
|
||||
private Map<String, Object> data = new HashMap<>();
|
||||
|
||||
private Builder() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user