|
@@ -9,7 +9,7 @@ export function login(username, password, code, uuid) {
|
|
|
uuid
|
|
|
}
|
|
|
return request({
|
|
|
- url: '/login',
|
|
|
+ url: '/system/login',
|
|
|
method: 'post',
|
|
|
data: data
|
|
|
})
|
|
@@ -18,7 +18,7 @@ export function login(username, password, code, uuid) {
|
|
|
// 获取用户详细信息
|
|
|
export function getInfo() {
|
|
|
return request({
|
|
|
- url: '/get-permission-info',
|
|
|
+ url: '/system/get-permission-info',
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
@@ -26,7 +26,7 @@ export function getInfo() {
|
|
|
// 退出方法
|
|
|
export function logout() {
|
|
|
return request({
|
|
|
- url: '/logout',
|
|
|
+ url: '/system/logout',
|
|
|
method: 'post'
|
|
|
})
|
|
|
}
|
|
@@ -42,7 +42,7 @@ export function getCodeImg() {
|
|
|
// 社交授权的跳转
|
|
|
export function socialAuthRedirect(type, redirectUri) {
|
|
|
return request({
|
|
|
- url: '/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri,
|
|
|
+ url: '/system/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri,
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
@@ -50,7 +50,7 @@ export function socialAuthRedirect(type, redirectUri) {
|
|
|
// 社交登录,使用 code 授权码
|
|
|
export function socialLogin(type, code, state) {
|
|
|
return request({
|
|
|
- url: '/social-login',
|
|
|
+ url: '/system/social-login',
|
|
|
method: 'post',
|
|
|
data: {
|
|
|
type,
|
|
@@ -63,7 +63,7 @@ export function socialLogin(type, code, state) {
|
|
|
// 社交登录,使用 code 授权码 + + 账号密码
|
|
|
export function socialLogin2(type, code, state, username, password) {
|
|
|
return request({
|
|
|
- url: '/social-login2',
|
|
|
+ url: '/system/social-login2',
|
|
|
method: 'post',
|
|
|
data: {
|
|
|
type,
|
|
@@ -78,7 +78,7 @@ export function socialLogin2(type, code, state, username, password) {
|
|
|
// 社交绑定,使用 code 授权码
|
|
|
export function socialBind(type, code, state) {
|
|
|
return request({
|
|
|
- url: '/social-bind',
|
|
|
+ url: '/system/social-bind',
|
|
|
method: 'post',
|
|
|
data: {
|
|
|
type,
|
|
@@ -91,7 +91,7 @@ export function socialBind(type, code, state) {
|
|
|
// 取消社交绑定
|
|
|
export function socialUnbind(type, unionId) {
|
|
|
return request({
|
|
|
- url: '/social-unbind',
|
|
|
+ url: '/system/social-unbind',
|
|
|
method: 'delete',
|
|
|
data: {
|
|
|
type,
|