26 lines
652 B
TypeScript
26 lines
652 B
TypeScript
//进行接口API的统一管理
|
|
import { request } from "./axios";
|
|
|
|
export class technicalArticles {
|
|
/**
|
|
* @description 获取technicalArticles分类
|
|
* @return {Promise} 返回请求结果
|
|
*/
|
|
static async getTechnicalArticlesCategory() {
|
|
return request("/index/articles/getTechnicalArticlesCategory", "get");
|
|
}
|
|
|
|
/**
|
|
* @description 获取technicalArticles文章列表
|
|
* @param {string} cateid - 分类ID
|
|
* @return {Promise} 返回请求结果
|
|
*/
|
|
static async getTechnicalArticlesLists(cateid: string) {
|
|
return request(
|
|
"/index/articles/getTechnicalArticlesLists",
|
|
{ cateid },
|
|
"get"
|
|
);
|
|
}
|
|
}
|