31 lines
892 B
TypeScript
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");
|
|
}
|
|
|
|
} |