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