仿真参数库

This commit is contained in:
2025-10-16 18:04:56 +08:00
parent 04724f7c3b
commit 1555e3b471
9 changed files with 287 additions and 30 deletions

View File

@@ -102,4 +102,63 @@ public class Constants {
}
}
@Schema(description = "文件夹类型枚举")
public enum DirType {
/**
* 知识库文件夹
*/
@Schema(description = "知识库文件夹",example = "1")
KNOWLEDGE_BASE_DIR("knowledge",1),
/**
* 项目节点文件夹
*/
@Schema(description = "项目节点文件夹",example = "2")
PROJECT_NODE_DIR("projectNode",2),
/**
* 头像库文件夹
*/
@Schema(description = "头像库文件夹",example = "3")
AVATAR_DIR("avatar",3),
/**
* 仿真参数库文件夹
*/
@Schema(description = "仿真参数库文件夹",example = "4")
SIMULATION_PARAMETER_DIR("simulationParameter",4);
String dirName;
int value;
DirType(String dirName,int value) {
this.dirName = dirName;
this.value = value;
}
public int getValue() {
return value;
}
public String getDirName() {
return dirName;
}
}
// 仿真参数库数据类型
public enum SimulationParameterDataType {
//库类型
LIBRARY(1),
// 分类类型
CATEGORY(2),
// 对象类型
OBJECT(3);
int value;
SimulationParameterDataType(int i) {
value = i;
}
public int getValue() {
return value;
}
}
}

View File

@@ -1,5 +1,6 @@
package com.sdm.common.entity.req.data;
import com.sdm.common.common.Constants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@@ -15,6 +16,9 @@ public class CreateDirReq {
@Schema(description = "文件夹名称")
private String dirName;
@Schema(description = "文件夹类型1 知识库文件夹2 项目节点文件夹3 头像库文件夹4 仿真参数库文件夹")
private Integer dirType;
// 0相对路径1绝对路径
@Schema(description = "路径类型: 0相对路径1绝对路径", defaultValue = "0")
private Integer type = 0;