文件上传更改

This commit is contained in:
XaoLi717 2024-09-11 10:40:54 +08:00
parent 13fd914224
commit c3b80be107
3 changed files with 21 additions and 0 deletions

View File

@ -89,4 +89,6 @@ public interface ErrorCodeConstants {
ErrorCode STAR2_NOT_EXISTS = new ErrorCode(1_009_018_000, "收藏不存在"); ErrorCode STAR2_NOT_EXISTS = new ErrorCode(1_009_018_000, "收藏不存在");
// ========== 点赞管理 我的收藏 1_009_019_000 ========== // ========== 点赞管理 我的收藏 1_009_019_000 ==========
ErrorCode TBUP_NOT_EXISTS = new ErrorCode( 1_009_019_000, "点赞不存在"); ErrorCode TBUP_NOT_EXISTS = new ErrorCode( 1_009_019_000, "点赞不存在");
// ========== 文件编辑 1_009_020_000 ==========
ErrorCode ONLYOF_NOT_EXISTS = new ErrorCode(1_009_020_000 , "文件编辑不存在");
} }

View File

@ -6,3 +6,5 @@ DELETE FROM "des_knowledge";
DELETE FROM "des_star2"; DELETE FROM "des_star2";
DELETE FROM "des_comment"; DELETE FROM "des_comment";
DELETE FROM "des_tbup"; DELETE FROM "des_tbup";
-- 将该删表 SQL 语句,添加到 yudao-module-only-biz 模块的 test/resources/sql/clean.sql 文件里
DELETE FROM "file_info";

View File

@ -111,3 +111,20 @@ CREATE TABLE IF NOT EXISTS "des_tbup" (
"deleted" bit NOT NULL DEFAULT FALSE, "deleted" bit NOT NULL DEFAULT FALSE,
PRIMARY KEY ("id") PRIMARY KEY ("id")
) COMMENT '点赞管理'; ) COMMENT '点赞管理';
-- 将该建表 SQL 语句,添加到 yudao-module-only-biz 模块的 test/resources/sql/create_tables.sql 文件里
CREATE TABLE IF NOT EXISTS "file_info" (
"id" int NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"file_name" varchar NOT NULL,
"file_size" bigint,
"file_type" varchar,
"file_path" varchar NOT NULL,
"upload_date" varchar,
"status" varchar,
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint NOT NULL,
PRIMARY KEY ("id")
) COMMENT '文件编辑';