feat: 工作目录支持页面内目录浏览器
This commit is contained in:
@@ -148,6 +148,22 @@ export interface paths {
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/v1/system/directories": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
get: operations["list_directories"];
|
||||
put?: never;
|
||||
post?: never;
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/v1/tasks": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
@@ -271,6 +287,21 @@ export interface components {
|
||||
runs: string[];
|
||||
timezone: string;
|
||||
};
|
||||
DirectoryEntry: {
|
||||
/** @description 用于展示的名称 */
|
||||
name: string;
|
||||
/** @description 绝对路径,选中后回填到表单 */
|
||||
path: string;
|
||||
};
|
||||
DirectoryListingResponse: {
|
||||
entries: components["schemas"]["DirectoryEntry"][];
|
||||
/** @description 上一级目录;盘符根目录和盘符列表为 null */
|
||||
parent?: string | null;
|
||||
/** @description 当前目录;为 null 表示正在列出盘符 */
|
||||
path?: string | null;
|
||||
/** @description 条目超过上限被截断时为 true */
|
||||
truncated: boolean;
|
||||
};
|
||||
ErrorResponse: {
|
||||
code: string;
|
||||
details: {
|
||||
@@ -707,6 +738,38 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
list_directories: {
|
||||
parameters: {
|
||||
query?: {
|
||||
/** @description 绝对目录路径;留空表示列出盘符 */
|
||||
path?: string;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody?: never;
|
||||
responses: {
|
||||
/** @description Subdirectories of the requested path, or the drive list */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["DirectoryListingResponse"];
|
||||
};
|
||||
};
|
||||
/** @description The path is not an existing absolute directory */
|
||||
400: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["ErrorResponse"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
list_tasks: {
|
||||
parameters: {
|
||||
query?: {
|
||||
|
||||
Reference in New Issue
Block a user