🚧 批量上传.

This commit is contained in:
lijiahangmax
2024-05-08 00:13:29 +08:00
parent f416e63b66
commit f323690472
33 changed files with 928 additions and 47 deletions

View File

@@ -10,7 +10,6 @@ import com.orion.ops.framework.mybatis.core.generator.template.Table;
import com.orion.ops.framework.mybatis.core.generator.template.Template;
import java.io.File;
import java.util.concurrent.TimeUnit;
/**
* 代码生成器
@@ -40,6 +39,7 @@ public class CodeGenerators {
// .enableCardView()
// .enableDrawerForm()
// .dict("dictValueType", "value_type")
// .comment("字典值类型")
// .fields("STRING", "INTEGER", "DECIMAL", "BOOLEAN", "COLOR")
// .labels("字符串", "整数", "小数", "布尔值", "颜色")
// .color("blue", "gray", "red", "green", "white")
@@ -49,11 +49,15 @@ public class CodeGenerators {
// .disableUnitTest()
// .vue("exec", "exec-template-host")
// .build(),
Template.create("path_bookmark", "路径标签", "path")
Template.create("upload_task", "上传任务", "upload")
.disableUnitTest()
.cache("path:bookmark:list:{}", "路径标签列表 ${userId}")
.expire(8, TimeUnit.HOURS)
.vue("host", "path-bookmark")
.vue("exec", "batch-upload")
.enableRowSelection()
.dict("uploadTaskStatus", "status")
.comment("上传任务状态")
.fields("PREPARATION", "UPLOADING", "FINISHED", "CANCELED")
.labels("准备中", "上传中", "已完成", "已取消")
.valueUseFields()
.build(),
};
// jdbc 配置 - 使用配置文件

View File

@@ -83,13 +83,13 @@ public class Template {
/**
* 设置字典
*
* @param keyName 字典配置名称
* @param variable 替换字段 数据库/小驼峰
* @param className 字段名称
* @param keyName 字典配置名称
* @param variable 替换字段 数据库/小驼峰
* @param field 字段名称
* @return dict
*/
public DictTemplate dict(String keyName, String variable, String className) {
return new DictTemplate(table, keyName, variable, className);
public DictTemplate dict(String keyName, String variable, String field) {
return new DictTemplate(table, keyName, variable, field);
}
/**