2023-06-26 15:47:06 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
|
|
|
// 获得文章分类列表
|
|
|
|
export function getArticleCategoryList() {
|
|
|
|
return request.get("app-api/promotion/article-category/list", {}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得文章列表
|
|
|
|
export function getArticleList(data) {
|
|
|
|
return request.get("app-api/promotion/article/list", data, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得文章分页
|
|
|
|
export function getArticlePage(data) {
|
|
|
|
return request.get("app-api/promotion/article/page", data, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
2023-06-27 14:19:08 +00:00
|
|
|
|
|
|
|
// 获得文章
|
|
|
|
export function getArticle(id) {
|
|
|
|
return request.get("app-api/promotion/article/get", {
|
|
|
|
id
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
2023-10-20 15:11:23 +00:00
|
|
|
|
|
|
|
// 增加文章浏览量
|
|
|
|
export function addArticleBrowseCount(id) {
|
|
|
|
return request.put("app-api/promotion/article/add-browse-count?id=" + id, {}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|