forked from UzTech/Vue3-typescript-demo
邀请码绑定,注册基础流程
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { LoginData, LoginResponse } from '@/types/auth'
|
||||
import type { AuthData, AuthResponse } from '@/types/auth'
|
||||
import request from '@/utils/request'
|
||||
|
||||
const login = (data: LoginData): Promise<LoginResponse> => {
|
||||
const login = (data: AuthData): Promise<AuthResponse> => {
|
||||
return request.post('user/auth/login', data)
|
||||
}
|
||||
|
||||
const register = (data: LoginData): Promise<LoginResponse> => {
|
||||
const register = (data: AuthData): Promise<AuthResponse> => {
|
||||
return request.post('user/auth/register', data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user