迁移版本
This commit is contained in:
17
api/page/user.js
Normal file
17
api/page/user.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user