refactor: 字典重构完成

This commit is contained in:
ray
2024-10-05 23:42:44 +08:00
parent 3f2a5a28df
commit 5d67ab0b62
11 changed files with 711 additions and 671 deletions

View File

@@ -29,12 +29,23 @@ public class Option<T> {
this.children= children;
}
public Option(T value, String label, String tag) {
this.value = value;
this.label = label;
this.tag= tag;
}
@Schema(description="选项的值")
private T value;
@Schema(description="选项的标签")
private String label;
@Schema(description = "标签类型")
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
private String tag;
@Schema(description="子选项列表")
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
private List<Option<T>> children;