修改和删除新闻

This commit is contained in:
quantulr
2024-03-05 17:25:19 +08:00
parent 5c74603844
commit 44cf0a8488
7 changed files with 304 additions and 77 deletions

View File

@ -0,0 +1,47 @@
import request from "@/utils/request";
// 科研项目列表
export function technologyProjectList(params) {
return request({
url: "/business/technologyProject/list",
method: "GET",
params,
});
}
// 科研项目信息添加
export function technologyProjectAdd(data) {
return request({
url: "/business/technologyProject",
method: "post",
data,
});
}
// 科研项目信息修改
export function technologyProjectEdit(data) {
return request({
url: "/business/technologyProject",
method: "PUT",
data,
});
}
export function technologyProjectDetail(id) {
return request({
url: `/business/technologyProject/${id}`,
method: "GET",
});
}
export function technologyProjectDelete(ids) {
return request({
url: `/business/technologyProject/${ids}`,
method: "DELETE",
});
}