1
This commit is contained in:
parent
f8a9243ecd
commit
5ed3c90526
@ -22,6 +22,7 @@ export interface DeploymentConfig extends BaseResponse {
|
|||||||
application: Application;
|
application: Application;
|
||||||
buildType: BuildTypeEnum;
|
buildType: BuildTypeEnum;
|
||||||
languageType: DevelopmentLanguageTypeEnum;
|
languageType: DevelopmentLanguageTypeEnum;
|
||||||
|
workflowDefinitionId: number;
|
||||||
buildVariables: JsonNode;
|
buildVariables: JsonNode;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
}
|
}
|
||||||
@ -32,6 +33,7 @@ export interface CreateDeploymentConfigRequest extends BaseRequest {
|
|||||||
applicationId: number;
|
applicationId: number;
|
||||||
buildType: BuildTypeEnum;
|
buildType: BuildTypeEnum;
|
||||||
languageType: DevelopmentLanguageTypeEnum;
|
languageType: DevelopmentLanguageTypeEnum;
|
||||||
|
workflowDefinitionId: number;
|
||||||
buildVariables: JsonNode;
|
buildVariables: JsonNode;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
}
|
}
|
||||||
@ -45,5 +47,6 @@ export interface UpdateDeploymentConfigRequest extends CreateDeploymentConfigReq
|
|||||||
export interface DeploymentConfigQueryParams extends BaseQuery {
|
export interface DeploymentConfigQueryParams extends BaseQuery {
|
||||||
environmentId?: number;
|
environmentId?: number;
|
||||||
applicationId?: number;
|
applicationId?: number;
|
||||||
|
workflowDefinitionId: number;
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
}
|
}
|
||||||
@ -12,6 +12,9 @@ export const getDefinitions = (params?: WorkflowDefinitionQuery) =>
|
|||||||
export const getDefinitionDetail = (id: number) =>
|
export const getDefinitionDetail = (id: number) =>
|
||||||
request.get<WorkflowDefinition>(`${DEFINITION_URL}/${id}`);
|
request.get<WorkflowDefinition>(`${DEFINITION_URL}/${id}`);
|
||||||
|
|
||||||
|
export const getPublishedDefinitions = (id: number) =>
|
||||||
|
request.get<WorkflowDefinition[]>(`${DEFINITION_URL}/published`);
|
||||||
|
|
||||||
export const deployDefinition = (id: number) =>
|
export const deployDefinition = (id: number) =>
|
||||||
request.post<void>(`${DEFINITION_URL}/${id}/deploy`);
|
request.post<void>(`${DEFINITION_URL}/${id}/deploy`);
|
||||||
|
|
||||||
@ -39,13 +42,6 @@ export const publishDefinition = (id: number) =>
|
|||||||
export const getWorkflowCategories = () =>
|
export const getWorkflowCategories = () =>
|
||||||
request.get<WorkflowCategory[]>(`${DEFINITION_URL}/categories`);
|
request.get<WorkflowCategory[]>(`${DEFINITION_URL}/categories`);
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取工作流分类
|
|
||||||
* @param id 工作流分类ID
|
|
||||||
* @returns Promise<WorkflowCategory> 工作流分类
|
|
||||||
*/
|
|
||||||
export const getWorkflowCategory = (id: number) =>
|
|
||||||
request.get<WorkflowCategory>(`${DEFINITION_URL}/categories/${id}`);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动工作流实例
|
* 启动工作流实例
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user