Add user management page

This commit is contained in:
2023-11-28 18:15:21 +08:00
parent 7c0508e2f7
commit 039fa396ab
9 changed files with 865 additions and 67 deletions

View File

@@ -1,10 +1,10 @@
import request from '@/services'
import { URL_API_LOGIN, URL_API_LOGOUT } from '@/constants/urls.constants'
import { URL_LOGIN, URL_LOGOUT } from '@/constants/urls.constants'
export const r_auth_login = (username: string, password: string) =>
request.post<TokenVo>(URL_API_LOGIN, {
request.post<TokenVo>(URL_LOGIN, {
username,
password
})
export const r_auth_logout = () => request.post(URL_API_LOGOUT)
export const r_auth_logout = () => request.post(URL_LOGOUT)