|
|
@@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
|
import org.springframework.stereotype.Indexed;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Dictionary;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -48,7 +49,7 @@ public class DictionaryItemModel {
|
|
|
@Schema(description = "状态")
|
|
|
private boolean disable;
|
|
|
|
|
|
- private List<DictionaryItemModel> children;
|
|
|
+ private List<DictionaryItemModel> children = new ArrayList<>();
|
|
|
|
|
|
|
|
|
public void addChild(DictionaryItemModel child) {
|