21 lines
547 B
JavaScript
21 lines
547 B
JavaScript
import {get, post} from '../request';
|
|
|
|
const prefix = 'user/'
|
|
|
|
export const getUserInfoApi = async () => {
|
|
return await get(`${prefix}my-info`)
|
|
}
|
|
export const bandPhoneApi = async (phone) => {
|
|
return await post(`${prefix}band-phone`, {
|
|
phone: phone
|
|
})
|
|
}
|
|
export const updateNickNameApi = async (nick_name) => {
|
|
return await post(`${prefix}update-nick-name`, {
|
|
nick_name
|
|
})
|
|
}
|
|
export const updateProfileApi = async (nick_name, avatar) => {
|
|
return await post(`${prefix}update-profile`, { nick_name, avatar })
|
|
}
|