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

import { req } from "../request"
//用户信息
const userIndex = () => req({
    url: "user"
})

// 用户设置
const userSetup = () => req({
    url: "user/setting"
})

//修改用户信息
const setting = (key, data) => req({
    url: "user/setting/" + key,
    method: "PUT",
    data: data
})

//我的余额首页
const account = data => req({
    url: "user/account/index",
    data
})

// 小程序码
const miniShare = data => req({
    url: "user/mini_share",
    data: data
})

// 我的团队
const teamList = data => req({
    url: "user/teams/lists",
    data: data
})

// 邀请码背景
const poster = (data) => req({
    url: "user/posters",
    data: data
})

export default ({
    userIndex,
    userSetup,
    setting,
    account,
    miniShare,
    teamList,
    poster
})