You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flow-playform-react/src/api/componentRelease.ts

21 lines
588 B
TypeScript

import axios from 'axios';
import { AxiosPromise } from 'axios';
// 公共路径
const urlPrefix = '/api/v1/bpms-workbench';
export interface ComponentReleaseParams {
identifier: string;
version: string;
[key: string]: any;
}
// 组件发布/公开
export function componentRelease(params: ComponentReleaseParams): AxiosPromise<any> {
return axios.post(`${urlPrefix}/componentRelease/publish`, params);
}
// 组件撤销
export function componentRevoke(params: ComponentReleaseParams): AxiosPromise<any> {
return axios.post(`${urlPrefix}/componentRelease/revoke`, params);
}