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

import { req } from "../request"

//Banner图
const Banner = () => req({
    url: "mall/banners"
})

// 身份产品包

const idpackage = () => req({
    url: "new/index"
})

//商品分类
const Categorie = data => req({
    url: "mall/categories",
    data: data
})

//商品列表
const Goods = data => req({
    url: "mall/goods",
    data: data
})

//商品详情
const goodsSee = (goods) => req({
    url: "mall/goods/" + goods
})

//商品下单
const place = data => req({
    url: "mall/buy/goods",
    data: data
})

//商品确认下单
const placeTrue = data => req({
    url: "mall/buy/goods",
    method: "POST",
    data: data
})

//公告列表
const articles = () => req({
    url: "cms/articles"
})

//公告详情
const articlesSee = (article_id) => req({
    url: "cms/articles/" + article_id
})

export default ({
    Banner,
    idpackage,
    Categorie,
    Goods,
    goodsSee,
    place,
    placeTrue,
    articles,
    articlesSee
})