1
This commit is contained in:
parent
f8a9243ecd
commit
5ed3c90526
@ -22,6 +22,7 @@ export interface DeploymentConfig extends BaseResponse {
|
||||
application: Application;
|
||||
buildType: BuildTypeEnum;
|
||||
languageType: DevelopmentLanguageTypeEnum;
|
||||
workflowDefinitionId: number;
|
||||
buildVariables: JsonNode;
|
||||
enabled: boolean;
|
||||
}
|
||||
@ -32,6 +33,7 @@ export interface CreateDeploymentConfigRequest extends BaseRequest {
|
||||
applicationId: number;
|
||||
buildType: BuildTypeEnum;
|
||||
languageType: DevelopmentLanguageTypeEnum;
|
||||
workflowDefinitionId: number;
|
||||
buildVariables: JsonNode;
|
||||
enabled: boolean;
|
||||
}
|
||||
@ -45,5 +47,6 @@ export interface UpdateDeploymentConfigRequest extends CreateDeploymentConfigReq
|
||||
export interface DeploymentConfigQueryParams extends BaseQuery {
|
||||
environmentId?: number;
|
||||
applicationId?: number;
|
||||
workflowDefinitionId: number;
|
||||
enabled?: boolean;
|
||||
}
|
||||
@ -12,6 +12,9 @@ export const getDefinitions = (params?: WorkflowDefinitionQuery) =>
|
||||
export const getDefinitionDetail = (id: number) =>
|
||||
request.get<WorkflowDefinition>(`${DEFINITION_URL}/${id}`);
|
||||
|
||||
export const getPublishedDefinitions = (id: number) =>
|
||||
request.get<WorkflowDefinition[]>(`${DEFINITION_URL}/published`);
|
||||
|
||||
export const deployDefinition = (id: number) =>
|
||||
request.post<void>(`${DEFINITION_URL}/${id}/deploy`);
|
||||
|
||||
@ -39,13 +42,6 @@ export const publishDefinition = (id: number) =>
|
||||
export const getWorkflowCategories = () =>
|
||||
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