18 lines
410 B
JavaScript
18 lines
410 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
|
|
})
|
|
}
|