Files
oxygen-ui/src/services/auth.tsx
2023-11-28 18:15:21 +08:00

11 lines
311 B
TypeScript

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