yunzer_go/frontend/src/api/downloadGames.ts
2025-12-25 22:21:12 +08:00

31 lines
892 B
TypeScript

//进行接口API的统一管理
import { request } from "./axios";
export class downloadGames {
/**
* @description 获取downloadGames分类
* @return {Promise} 返回请求结果
*/
static async getDownloadGamesCategory() {
return request("/index/program/getDownloadGamesCategory", "get");
}
/**
* @description 获取downloadGames文章列表
* @param {string} cateid - 分类ID
* @return {Promise} 返回请求结果
*/
static async getDownloadGamesLists(cateid: string) {
return request("/index/program/getDownloadGamesLists", { cateid }, "get");
}
/**
* @description 获取downloadGames文章列表
* @param {string} cateid - 分类ID
* @return {Promise} 返回请求结果
*/
static async getDownloadGamesSimpleLists(cateid: string) {
return request("/index/program/getDownloadGamesSimpleLists", { cateid }, "get");
}
}