import request from '@/utils/request' // api地址 const api = { userInfo: 'user/memberInfo', assets: 'user/assets', bindMobile: 'user/bindMobile', personal: 'user/personal', spreadlist: 'user/spreadlist', levelInfo:'user/memberLevel', upgradenow:'user/activateMember', uploadimg:'user/upload', updateMember:'user/updateMember', problemFeedback:'user/problemFeedback', withdrawal:'user/withdrawal', bankList:'user/bankList', addBank:'user/addBank', knowledgeCategoryList:'user/knowledgeCategoryList', knowledgeList:'user/knowledgeList', integralLog:'user/integralLog', myTeamList:'user/myTeamList', knowledgeInfo:'user/knowledgeInfo' } // 当前登录的用户信息 export const info = (param) => { return request.post(api.userInfo, param) } // 账户资产 export const assets = (param, option) => { return request.get(api.assets, param, option) } // 绑定手机号 export const bindMobile = (data, option) => { return request.post(api.bindMobile, data, option) } // 修改个人信息(头像昵称) export const personal = (data, option) => { return request.post(api.personal, data, option) } export const spreadlist = (data, option) => { return request.post(api.spreadlist, data, option) } export const levelInfo = (data, option) => { return request.post(api.levelInfo, data, option) } export const upgradenow = (data, option) => { return request.post(api.upgradenow, data, option) } export const uploadimg = (data, option) => { return request.post(api.uploadimg, data, option) } export const updateMember = (data, option) => { return request.post(api.updateMember, data, option) } export const problemFeedback = (data, option) => { return request.post(api.problemFeedback, data, option) } export const withdrawal = (data, option) => { return request.post(api.withdrawal, data, option) } export const bankList = (data, option) => { return request.post(api.bankList, data, option) } export const addBank = (data, option) => { return request.post(api.addBank, data, option) } export const knowledgeCategoryList = (data, option) => { return request.post(api.knowledgeCategoryList, data, option) } export const knowledgeList = (data, option) => { return request.post(api.knowledgeList, data, option) } export const integralLog = (data, option) => { return request.post(api.integralLog, data, option) } export const myTeamList = (data, option) => { return request.post(api.myTeamList, data, option) } export const knowledgeInfo = (data, option) => { return request.post(api.knowledgeInfo, data, option) }