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