锶源昆仑商城

This commit is contained in:
2023-07-22 19:01:37 +08:00
commit 4ba3377084
223 changed files with 10557 additions and 0 deletions

46
api/interfaces/index.js Normal file
View File

@@ -0,0 +1,46 @@
/*
* 手太欠
* 愿这世界都如故事里一样 美好而动人~
*/
import { req } from "../request"
// 商城首页
const home = () => req({
url: "mall"
})
// 文章-列表
const articlesList = (data) => req({
url: "cms/articles",
data: data
})
// 文章-详情
const articlesSee = (article_id) => req({
url: "cms/articles/" + article_id
})
// 文章-分类
const articlesClass = () => req({
url: "cms/categories"
})
// 文章-收藏
const articlesFavorite = (article_id) => req({
url: "cms/articles/favorite/" + article_id
})
// 文章-点赞
const articlesSubscribe = (article_id) => req({
url: "cms/articles/subscribe/" + article_id
})
export default ({
home,
articlesList,
articlesSee,
articlesClass,
articlesFavorite,
articlesSubscribe
})