chore:平台容器框架升级,修复命令行环境丢失的问题
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { type BlockSchema } from '@vtj/core';
|
||||
import type { BlockSchema } from '@vtj/core';
|
||||
|
||||
import instance from './instance';
|
||||
import { fi } from 'element-plus/es/locale/index.mjs';
|
||||
|
||||
export type LowCodeFileSchema = {
|
||||
project_id: number;
|
||||
publish: boolean;
|
||||
active: boolean;
|
||||
dsl: BlockSchema;
|
||||
file_path?: string;
|
||||
file_id?: string;
|
||||
file_path?: string;
|
||||
project_id: number;
|
||||
publish: boolean;
|
||||
};
|
||||
|
||||
function transformFile(file: LowCodeFileSchema): LowCodeFileSchema {
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import type { HistorySchema } from '@vtj/core';
|
||||
|
||||
import instance from './instance';
|
||||
import { type HistorySchema } from '@vtj/core';
|
||||
|
||||
export type LowCodeHistorySchema = {
|
||||
project_id: number;
|
||||
dsl?: HistorySchema;
|
||||
file_id: string;
|
||||
history_id: string;
|
||||
id?: string;
|
||||
dsl?: HistorySchema;
|
||||
project_id: number;
|
||||
};
|
||||
|
||||
function transformHistoryData(data: LowCodeHistorySchema) {
|
||||
@@ -20,12 +21,12 @@ export type HistoriesResponse = {
|
||||
code: number;
|
||||
data: {
|
||||
list: Array<{
|
||||
id: number;
|
||||
project_id: number;
|
||||
created_at: string;
|
||||
dsl: Record<string, any>;
|
||||
file_id: string;
|
||||
history_id: string;
|
||||
dsl: Record<string, any>;
|
||||
created_at: string;
|
||||
id: number;
|
||||
project_id: number;
|
||||
updated_at: string;
|
||||
}>;
|
||||
total: number;
|
||||
@@ -34,10 +35,10 @@ export type HistoriesResponse = {
|
||||
};
|
||||
|
||||
export type GetHistoriesParams = {
|
||||
project_id: number;
|
||||
file_id: string;
|
||||
page?: number;
|
||||
per_page?: number;
|
||||
project_id: number;
|
||||
};
|
||||
|
||||
export const getHistories = async (params: GetHistoriesParams) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export * from './api';
|
||||
export * from './application';
|
||||
export * from './block';
|
||||
export * from './file';
|
||||
export * from './history';
|
||||
export * from './materials';
|
||||
export * from './project';
|
||||
export * from './application';
|
||||
export * from './history';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type MaterialDescription } from '@vtj/core';
|
||||
import type { MaterialDescription } from '@vtj/core';
|
||||
|
||||
import instance from './instance';
|
||||
|
||||
@@ -52,13 +52,13 @@ export const getMaterials = async (id: number): Promise<MaterialResponse> => {
|
||||
};
|
||||
|
||||
type MaterialData = {
|
||||
project_id: number;
|
||||
value: Record<string, MaterialDescription>;
|
||||
created_at?: string;
|
||||
// 从原interface合并的字段
|
||||
id?: number;
|
||||
name?: string;
|
||||
created_at?: string;
|
||||
project_id: number;
|
||||
updated_at?: string;
|
||||
value: Record<string, MaterialDescription>;
|
||||
};
|
||||
|
||||
function transformMaterialData(data: MaterialData) {
|
||||
|
||||
Reference in New Issue
Block a user