import type { Article } from "../types"; import { axios } from "./BaseAPI"; export const ArticleAPI = { /** * 获取文章 * * @param id 文章 ID * @returns 文章数据 */ async detail(id: string): Promise
{ return axios.post(`/article/detail`, null, { params: { id } }); }, }; export default ArticleAPI;