ludu-cloud/admin-web/src/services/system.js

20 lines
527 B
Java
Raw Normal View History

2020-04-26 19:52:14 +08:00
import { stringify } from '@/utils/request.qs';
import request from '@/utils/request';
// ========== OAuth2 模块 ==========
2020-04-26 19:52:14 +08:00
export async function oauth2UsernameAuthenticate(params) {
2020-04-26 19:52:14 +08:00
return request(`/system-api/admins/oauth2/username-authenticate?${stringify(params)}`, {
method: 'POST',
body: {},
});
}
// ========== Authorization 模块 ==========
export async function authorizationMenuResourceTree() {
return request('/system-api/admins/authorization/menu-resource-tree', {
method: 'GET',
});
}