会员模块

This commit is contained in:
2023-12-15 17:53:08 +08:00
commit 2a998468d9
282 changed files with 14521 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
})