Compare commits
3 Commits
main
...
newHome1.0
Author | SHA1 | Date |
---|---|---|
|
758e93decb | 1 year ago |
|
18480590c9 | 1 year ago |
|
f44cee9ec8 | 1 year ago |
@ -1,55 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
import {
|
||||
UPMS_SREVICE,
|
||||
AUTH_SREVICE,
|
||||
SJZD_SREVICE
|
||||
} from '@/api/module/urls'
|
||||
import request from "@/utils/request";
|
||||
import { UPMS_SREVICE, AUTH_SREVICE, SJZD_SREVICE } from "@/api/module/urls";
|
||||
|
||||
const client_id = 'web'
|
||||
const client_secret = '123456'
|
||||
const scope = 'server'
|
||||
const client_id = "web";
|
||||
const client_secret = "123456";
|
||||
const scope = "server";
|
||||
|
||||
// 登录方法
|
||||
export function login(username, password, clienttype) {
|
||||
return request({
|
||||
url: '/login',
|
||||
method: 'post',
|
||||
url: "/user/loginold",
|
||||
method: "post",
|
||||
params: {
|
||||
username,
|
||||
password,
|
||||
clienttype
|
||||
}
|
||||
})
|
||||
clienttype,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 刷新方法
|
||||
export function refreshToken() {
|
||||
return request({
|
||||
url: AUTH_SREVICE + '/auth/refresh',
|
||||
method: 'post'
|
||||
})
|
||||
url: AUTH_SREVICE + "/auth/refresh",
|
||||
method: "post",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取用户详细信息
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: UPMS_SREVICE + '/system/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
url: UPMS_SREVICE + "/system/getInfo",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/logout',
|
||||
method: 'delete'
|
||||
})
|
||||
url: "/user/logout",
|
||||
method: "post",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export function getCodeImg() {
|
||||
return request({
|
||||
url: '/code',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
url: "/code",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
@ -1,8 +1,13 @@
|
||||
const UPMS_SREVICE='/api-upms';
|
||||
const AUTH_SREVICE='/prod-api';
|
||||
const LOGS_SREVICE='/api-logs';
|
||||
const GEN_CODE_SREVICE='/api-gen';
|
||||
const SJZD_SREVICE='http://127.0.0.1:8081';
|
||||
const UPMS_SREVICE = "/api-upms";
|
||||
const AUTH_SREVICE = "/cac-api";
|
||||
const LOGS_SREVICE = "/api-logs";
|
||||
const GEN_CODE_SREVICE = "/api-gen";
|
||||
const SJZD_SREVICE = "http://127.0.0.1:8081";
|
||||
|
||||
|
||||
export { UPMS_SREVICE, AUTH_SREVICE, LOGS_SREVICE, GEN_CODE_SREVICE,SJZD_SREVICE}
|
||||
export {
|
||||
UPMS_SREVICE,
|
||||
AUTH_SREVICE,
|
||||
LOGS_SREVICE,
|
||||
GEN_CODE_SREVICE,
|
||||
SJZD_SREVICE,
|
||||
};
|
||||
|
Loading…
Reference in New Issue