You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
623 B
41 lines
623 B
import http from './http'
|
|
|
|
// 登录方法
|
|
export function login(username, password, captchaVerification, tenantName, rememberMe, code, uuid) {
|
|
const data = {
|
|
username,
|
|
password,
|
|
captchaVerification,
|
|
tenantName,
|
|
rememberMe,
|
|
code,
|
|
uuid,
|
|
}
|
|
return http.post('/system/auth/loginNoCode', data)
|
|
}
|
|
|
|
// 获取用户详细信息
|
|
export function getInfo() {
|
|
return http.get('/system/user/profile/get')
|
|
}
|
|
// 获取权限
|
|
export function getPermissionInfo() {
|
|
return http.get('/system/auth/get-permission-info')
|
|
}
|
|
// 退出方法
|
|
export function logout() {
|
|
return http.post('/system/auth/logout')
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|