迁移版本
This commit is contained in:
11
api/page/auth.js
Normal file
11
api/page/auth.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import {get, post} from '../request';
|
||||
|
||||
const prefix = 'auth/'
|
||||
export const loginApi = async (code, phoneCode, avatarUrl, nickName) => {
|
||||
return await post(`${prefix}login`, {
|
||||
code,
|
||||
phone_code: phoneCode,
|
||||
avatar: avatarUrl,
|
||||
nick_name: nickName
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user