123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- import request from '~/utils/request'
- export const register = data => request({
- data,
- method: 'POST',
- url: 'register'
- })
- export const login = data => request({
- data,
- method: 'POST',
- url: 'login'
- })
- //更新用户信息
- export const updata = params => request({
- params,
- method: 'PUT',
- url: 'user'
- })
- export const mobileLogin = data => request({
- data,
- method: 'POST',
- url: 'mobile-login'
- })
- //用户信息
- export const userinfo = params => (request({
- params,
- method: 'GET',
- url: 'user/info'
- }))
- //我的关注
- export const follow = params => (request({
- params,
- method: 'GET',
- url: `user/follow`
- }))
- //粉丝列表
- export const fans = params => (request({
- params,
- method: 'GET',
- url: `user/fans`
- }))
- //关注
- export const userfollow = data => request({
- data,
- method: 'POST',
- url: `user/${data.id}/follow`
- })
- export const finance = () => (request({
- method: 'GET',
- url: 'finance'
- }))
- // 奖励
- // level/prize?page=1&limit=10&is_page=1
- export const levelPrize = params => request({
- params,
- method: 'GET',
- url: 'level/prize'
- })
- // 用户排名
- // user/rank?type=integral&page=1&limit=10&is_page=1
- export const userRank = params => request({
- url: 'user/rank',
- method: 'GET',
- params
- })
- // 优惠券
- // user/coupon?is_page=1&page=1&limit=10&is_expire=&is_use=&type=
- export const coupon = params => request({
- url: 'user/coupon',
- method: 'GET',
- params
- })
- //其他用户信息
- export const other = params => request({
- url: 'user/user/info',
- method: 'GET',
- params
- })
- //更换手机号
- export const phone = data => request({
- url: 'user/change-mobile',
- method: 'POST',
- data
- })
- //修改密码
- export const password = data => request({
- url: 'user/change-password',
- method: 'POST',
- data
- })
- //邀请列表
- export const children = params => request({
- url: 'user/children',
- method: 'GET',
- params
- })
- //邀请人信息
- export const parent = () => request({
- url: 'user/parent',
- method: 'GET',
- })
- //获取用户配置
- export const config = () => request({
- url: 'user/config',
- method: 'GET',
- })
- //设置用户配置
- export const postconfig = params => request({
- url: 'user/config',
- method: 'POST',
- params
- })
- //我的足迹
- export const browse = data => request({
- url: 'browse',
- method: 'GET',
- data
- })
- //勋章列表
- export const badge = data => request({
- url: 'badge',
- method: 'GET',
- data
- })
|