 /*
  * 手太欠
  * 愿这世界都如故事里一样 美好而动人~
*/

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
})