2022-12-16 17:26:54 +08:00
|
|
|
import request from "@/utils/request";
|
|
|
|
|
2022-12-20 16:32:39 +08:00
|
|
|
export const listAllCategory = (query) =>
|
2022-12-16 17:26:54 +08:00
|
|
|
request({
|
|
|
|
url: "/flowable/category/list",
|
|
|
|
method: "get",
|
|
|
|
params: query,
|
|
|
|
});
|
2022-12-20 16:32:39 +08:00
|
|
|
export const addCategory = (data) =>
|
|
|
|
request({
|
|
|
|
url: "/flowable/category",
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
export const delCategory = (ids) =>
|
|
|
|
request({
|
|
|
|
url: "/flowable/category",
|
|
|
|
method: "delete",
|
|
|
|
data: { ids }
|
|
|
|
});
|