This commit is contained in:
make
2025-04-06 21:51:01 +08:00
commit 3792acd4c7
408 changed files with 42349 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { ResPage, ResultData } from "@/api/interface/index";
import { ConfigList } from "@/api/interface/ad/config";
import { getGuangGaoGgpzListApiUrl, getGuangGaoGgpzSaveApiUrl } from "@/api/config";
import http from "@/api";
/**
* @name 广告配置列表
*/
export const getList = (params: ConfigList.ReqParams) => {
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, params);
};
export const getAllList = () => {
return http.get<ResPage<ConfigList.ResList>>(getGuangGaoGgpzListApiUrl, { limit: 1000, page: 1 });
};
/**
* @name 设置广告配置
*/
export const saveData = (params: ConfigList.saveParams) => {
return http.post<ResPage<ResultData>>(getGuangGaoGgpzSaveApiUrl, params);
};
/**
/**
* @name 删除广告配置
*/
export const deleteItem = (params: ConfigList.delParams) => {
return http.post<ResPage<ResultData>>(getGuangGaoGgpzSaveApiUrl, params);
};