Files
lingji-work-fe/src/api/all/enterpriseKnowledge.ts
2025-06-26 11:39:50 +08:00

27 lines
640 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Http from '@/api';
// 获取物料列表
export const getMaterialsList = (params = {}) => {
// 发送GET请求获取行业树
return Http.get('v1/materials', params);
};
//删除物料
export const deleteMaterials = (id: number) => {
return Http.delete('v1/materials/' + id);
};
//添加物料
export const addMaterials = (data: any) => {
return Http.post('v1/materials', data);
};
//修改物料
export const updateMaterials = (id: number, data: any) => {
return Http.put('v1/materials/' + id, data);
};
//获取详情
export const getMaterialsDetail = (id: number) => {
return Http.get('v1/materials/' + id);
};