图标库

This commit is contained in:
ZZX9599
2025-09-26 13:46:24 +08:00
parent 8479d174be
commit 26af321271
37 changed files with 751 additions and 23 deletions

View File

@ -0,0 +1,47 @@
package com.yj.earth.vo;
import com.yj.earth.business.domain.IconType;
import com.yj.earth.business.domain.ModelType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class IconTypeVo {
@Schema(description = "主键")
private String id;
@Schema(description = "图标类型名称")
private String name;
@Schema(description = "父级节点ID")
private String parentId;
@Schema(description = "树形结构索引")
private Integer treeIndex;
@Schema(description = "创建时间")
private LocalDateTime createdAt;
@Schema(description = "更新时间")
private LocalDateTime updatedAt;
@Schema(description = "子节点列表")
private List<IconTypeVo> children = new ArrayList<>();
public IconTypeVo(IconType iconType) {
this.id = iconType.getId();
this.name = iconType.getName();
this.parentId = iconType.getParentId();
this.treeIndex = iconType.getTreeIndex();
this.createdAt = iconType.getCreatedAt();
this.updatedAt = iconType.getUpdatedAt();
}
}

View File

@ -0,0 +1,10 @@
package com.yj.earth.vo;
import com.yj.earth.business.domain.Icon;
import com.yj.earth.business.domain.Military;
import lombok.Data;
@Data
public class IconVo extends Icon {
private String iconTypeName;
}

View File

@ -18,12 +18,15 @@ public class MilitaryTypeVo {
@Schema(description = "主键")
private String id;
@Schema(description = "模型类型名称")
@Schema(description = "军标类型名称")
private String name;
@Schema(description = "父级节点ID")
private String parentId;
@Schema(description = "树形结构索引")
private Integer treeIndex;
@Schema(description = "创建时间")
private LocalDateTime createdAt;
@ -36,6 +39,7 @@ public class MilitaryTypeVo {
this.id = militaryType.getId();
this.name = militaryType.getName();
this.parentId = militaryType.getParentId();
this.treeIndex = militaryType.getTreeIndex();
this.createdAt = militaryType.getCreatedAt();
this.updatedAt = militaryType.getUpdatedAt();
}

View File

@ -6,5 +6,5 @@ import lombok.Data;
@Data
public class MilitaryVo extends Military {
private String modelTypeName;
private String militaryTypeName;
}

View File

@ -22,6 +22,9 @@ public class ModelTypeVo {
@Schema(description = "父级节点ID")
private String parentId;
@Schema(description = "树形结构索引")
private Integer treeIndex;
@Schema(description = "创建时间")
private LocalDateTime createdAt;
@ -34,6 +37,7 @@ public class ModelTypeVo {
this.id = modelType.getId();
this.name = modelType.getName();
this.parentId = modelType.getParentId();
this.treeIndex = modelType.getTreeIndex();
this.createdAt = modelType.getCreatedAt();
this.updatedAt = modelType.getUpdatedAt();
}