feat(api): 添加组件分类和文件上传接口
parent
eb24c83864
commit
94ba3bae4a
@ -0,0 +1,9 @@
|
||||
import axios from 'axios';
|
||||
|
||||
// 公共路径
|
||||
const urlPrefix = '/api/v1/bpms-workbench';
|
||||
|
||||
// 我的组件
|
||||
export function getComponentClassify(classifyType: 'component' | 'language_type') {
|
||||
return axios.get(`${urlPrefix}/componentClassify/list?classifyType=${classifyType}`);
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
import axios from 'axios';
|
||||
|
||||
// 公共路径
|
||||
const urlPrefix = '/api/v1/bpms-workbench';
|
||||
|
||||
// 我的组件
|
||||
export function fileUpload(params) {
|
||||
return axios.post(`${urlPrefix}/fileSystem/fileUpload`, params);
|
||||
}
|
||||
Loading…
Reference in New Issue