import type { http } from "@/typing/http";
import { ARCHIVES_HOST } from "@/utils/host";
import request from "@/utils/request";
/**
* @description: 分页获取替换name
* @param {替换name.QueryParams} params
* @return {http.PromisePageResp<替换name.ListVO>}
*/
export function get替换nameListApi(params: 替换name.QueryParams): http.PromisePageResp<替换name.ListVO> {
return request.get(`API url`, { params });
}
/**
* @description: 保存替换name
* @param {替换name.ListVO} params
* @return {http.PromiseResp}
*/
export function save替换nameApi(params: 替换name.ListVO): http.PromiseResp {
return request.post(`API url`, params);
}
/**
* @description: 删除替换name
* @param {number} id
* @return {http.PromiseResp}
*/
export function delete替换nameApi(id: number): http.PromiseResp {
return request.get(`API url`, { params: { id } });
}