邀请码绑定,注册基础流程

This commit is contained in:
2021-09-22 13:17:57 +08:00
parent 1228dfc97b
commit e444edb7ee
9 changed files with 57 additions and 15 deletions

View File

@@ -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)
}