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/components.ts

26 lines
668 B
TypeScript

import axios from 'axios';
import { apiResData } from '@/api/interface/index';
// 公共路径
const urlPrefix = '/api/v1/bpms-workbench';
// 我的组件
export function getMyComponents() {
return axios.get<apiResData>(`${urlPrefix}/components/mineList`);
}
// 公开组件
export function getPubComponents() {
return axios.get<apiResData>(`${urlPrefix}/components/publicList`);
}
// 协同组件
export function getTeamComponents() {
return axios.get<apiResData>(`${urlPrefix}/components/teamList`);
}
// 根据组件id查看实例列表
export function queryInstance(compId: string) {
return axios.get(`${urlPrefix}/components/${compId}/instances`);
}