chore:平台容器框架升级,修复命令行环境丢失的问题

This commit is contained in:
wangxuefeng
2025-03-11 10:15:28 +08:00
parent 3e1a1b4a66
commit 9438489a11
68 changed files with 1800 additions and 1646 deletions

View File

@@ -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) => {