Add register to sign page(temp)

This commit is contained in:
2023-12-22 17:57:32 +08:00
parent 85aba29ced
commit bbc669ba3e
11 changed files with 247 additions and 285 deletions

View File

@@ -1,10 +1,10 @@
import { URL_LOGIN, URL_LOGOUT } from '@/constants/urls.constants'
import { URL_LOGIN, URL_LOGOUT, URL_REGISTER, URL_VERIFY } from '@/constants/urls.constants'
import request from '@/services'
export const r_auth_login = (account: string, password: string) =>
request.post<TokenVo>(URL_LOGIN, {
account,
password
})
export const r_auth_register = (param: RegisterParam) => request.post(URL_REGISTER, param)
export const r_auth_verify = (param: VerifyParam) => request.post(URL_VERIFY, param)
export const r_auth_login = (param: LoginParam) => request.post<TokenVo>(URL_LOGIN, param)
export const r_auth_logout = () => request.post(URL_LOGOUT)