添加Pure Config页面

This commit is contained in:
志福
2024-11-01 21:59:22 +08:00
parent 73db2a202a
commit 7a916fc78e
10 changed files with 509 additions and 9 deletions

View File

@@ -0,0 +1,27 @@
import { http } from "@/utils/http";
import type { Result, ResultPage } from "@/api/result";
/** 获取系统管理-参数配置列表 */
export const getConfigList = (data?: object) => {
return http.request<ResultPage>("get", "/config", { data });
};
/** 查询参数详细 */
export const getConfig = id => {
return http.request<Result>("get", `/config/${id}`, {});
};
/** 新增参数 */
export const addConfig = data => {
return http.request<Result>("post", `/config`, { data });
};
/** 修改参数 */
export const updateConfig = (id, data) => {
return http.request<Result>("put", `/config/${id}`, { data });
};
/** 删除参数 */
export const delConfig = id => {
return http.request<Result>("delete", `/config`, { params: { id } });
};