chore:平台容器框架升级,修复命令行环境丢失的问题
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user