init
This commit is contained in:
77
src/api/system/apikey.js
Normal file
77
src/api/system/apikey.js
Normal file
@@ -0,0 +1,77 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/save',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/update',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const submit = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const disable = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-key/disable',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
23
src/api/system/apikeylog.js
Normal file
23
src/api/system/apikeylog.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/api-key-log/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/api-key-log/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
45
src/api/system/authlock.js
Normal file
45
src/api/system/authlock.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getAuthLockPage = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/page',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getAuthLockDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/detail',
|
||||
method: 'get',
|
||||
params: { id },
|
||||
});
|
||||
};
|
||||
|
||||
export const authLockUnlock = (id, unlockReason) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/unlock',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
unlockReason,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const lockUser = (userId, lockReason, lockBeginTime, lockEndTime) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-lock/lock',
|
||||
method: 'post',
|
||||
params: {
|
||||
userId,
|
||||
lockReason,
|
||||
lockBeginTime,
|
||||
lockEndTime,
|
||||
},
|
||||
});
|
||||
};
|
||||
21
src/api/system/authlog.js
Normal file
21
src/api/system/authlog.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getAuthLogPage = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/auth-log/page',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getAuthLogDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/auth-log/detail',
|
||||
method: 'get',
|
||||
params: { id },
|
||||
});
|
||||
};
|
||||
49
src/api/system/client.js
Normal file
49
src/api/system/client.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/client/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/client/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/client/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/client/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/client/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
80
src/api/system/dept.js
Normal file
80
src/api/system/dept.js
Normal file
@@ -0,0 +1,80 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dept/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLazyList = (parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dept/lazy-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/dept/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/dept/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/dept/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getDept = id => {
|
||||
return request({
|
||||
url: '/blade-system/dept/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDeptTree = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/dept/tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDeptLazyTree = parentId => {
|
||||
return request({
|
||||
url: '/blade-system/dept/lazy-tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
88
src/api/system/dict.js
Normal file
88
src/api/system/dict.js
Normal file
@@ -0,0 +1,88 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getParentList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict/parent-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getChildList = (current, size, parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict/child-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
parentId: parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/dict/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getDict = id => {
|
||||
return request({
|
||||
url: '/blade-system/dict/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const getDictTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/dict/tree?code=DICT',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const getDictionary = params => {
|
||||
return request({
|
||||
url: '/blade-system/dict/dictionary',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
88
src/api/system/dictbiz.js
Normal file
88
src/api/system/dictbiz.js
Normal file
@@ -0,0 +1,88 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getParentList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/parent-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getChildList = (current, size, parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/child-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
parentId: parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getDict = id => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const getDictTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/tree?code=DICT',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const getDictionary = params => {
|
||||
return request({
|
||||
url: '/blade-system/dict-biz/dictionary',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
114
src/api/system/menu.js
Normal file
114
src/api/system/menu.js
Normal file
@@ -0,0 +1,114 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLazyList = (parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/lazy-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLazyMenuList = (parentId, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/lazy-menu-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
parentId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/menu/menu-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuTree = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/menu/tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/menu/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/menu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/menu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenu = id => {
|
||||
return request({
|
||||
url: '/blade-system/menu/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getTopMenu = () =>
|
||||
request({
|
||||
url: '/blade-system/menu/top-menu',
|
||||
method: 'get',
|
||||
});
|
||||
|
||||
export const getRoutes = topMenuId =>
|
||||
request({
|
||||
url: '/blade-system/menu/routes',
|
||||
method: 'get',
|
||||
params: {
|
||||
topMenuId,
|
||||
},
|
||||
});
|
||||
|
||||
export const getMainMenu = () =>
|
||||
request({
|
||||
url: '/blade-system/menu/main-menu',
|
||||
method: 'get',
|
||||
});
|
||||
49
src/api/system/param.js
Normal file
49
src/api/system/param.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/param/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/param/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/param/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/param/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/param/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
59
src/api/system/post.js
Normal file
59
src/api/system/post.js
Normal file
@@ -0,0 +1,59 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/post/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getPostList = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/post/select',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/post/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/post/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/post/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/post/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
77
src/api/system/ratelimit.js
Normal file
77
src/api/system/ratelimit.js
Normal file
@@ -0,0 +1,77 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/save',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/update',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const submit = row => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = ids => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const disable = ids => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit/disable',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
23
src/api/system/ratelimitlog.js
Normal file
23
src/api/system/ratelimitlog.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit-log/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/rate-limit-log/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
96
src/api/system/role.js
Normal file
96
src/api/system/role.js
Normal file
@@ -0,0 +1,96 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/role/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
export const grantTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/menu/grant-tree',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const grant = (roleIds, menuIds, dataScopeIds, apiScopeIds) => {
|
||||
return request({
|
||||
url: '/blade-system/role/grant',
|
||||
method: 'post',
|
||||
data: {
|
||||
roleIds,
|
||||
menuIds,
|
||||
dataScopeIds,
|
||||
apiScopeIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/role/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/role/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/role/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getRole = roleIds => {
|
||||
return request({
|
||||
url: '/blade-system/menu/role-tree-keys',
|
||||
method: 'get',
|
||||
params: {
|
||||
roleIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getRoleTree = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/role/tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getRoleTreeById = roleId => {
|
||||
return request({
|
||||
url: '/blade-system/role/tree-by-id',
|
||||
method: 'get',
|
||||
params: {
|
||||
roleId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getRoleAlias = () => {
|
||||
return request({
|
||||
url: '/blade-system/role/alias',
|
||||
method: 'get',
|
||||
params: {},
|
||||
});
|
||||
};
|
||||
97
src/api/system/scope.js
Normal file
97
src/api/system/scope.js
Normal file
@@ -0,0 +1,97 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getListDataScope = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const removeDataScope = ids => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const addDataScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const updateDataScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuDataScope = id => {
|
||||
return request({
|
||||
url: '/blade-system/data-scope/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getListApiScope = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const removeApiScope = ids => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const addApiScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const updateApiScope = row => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const getMenuApiScope = id => {
|
||||
return request({
|
||||
url: '/blade-system/api-scope/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
122
src/api/system/tenant.js
Normal file
122
src/api/system/tenant.js
Normal file
@@ -0,0 +1,122 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const setting = (ids, form) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/setting',
|
||||
method: 'post',
|
||||
params: {
|
||||
...form,
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const datasource = (tenantId, datasourceId) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/datasource',
|
||||
method: 'post',
|
||||
params: {
|
||||
tenantId,
|
||||
datasourceId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const info = domain => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/info',
|
||||
method: 'get',
|
||||
params: {
|
||||
domain,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const packageInfo = tenantId => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/package-detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const packageSetting = (tenantId, packageId) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/package-setting',
|
||||
method: 'post',
|
||||
params: {
|
||||
tenantId,
|
||||
packageId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const recycle = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/recycle',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const pass = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/pass',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
49
src/api/system/tenantdatasource.js
Normal file
49
src/api/system/tenantdatasource.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-datasource/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
49
src/api/system/tenantpackage.js
Normal file
49
src/api/system/tenantpackage.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/tenant-package/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
87
src/api/system/topmenu.js
Normal file
87
src/api/system/topmenu.js
Normal file
@@ -0,0 +1,87 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getDetail = id => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const grantTree = () => {
|
||||
return request({
|
||||
url: '/blade-system/menu/grant-top-tree',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const getTopTree = topMenuIds => {
|
||||
return request({
|
||||
url: '/blade-system/menu/top-tree-keys',
|
||||
method: 'get',
|
||||
params: {
|
||||
topMenuIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const grant = (topMenuIds, menuIds) => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/grant',
|
||||
method: 'post',
|
||||
data: {
|
||||
topMenuIds,
|
||||
menuIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const enable = id => {
|
||||
return request({
|
||||
url: '/blade-system/topmenu/enable',
|
||||
method: 'post',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
175
src/api/system/user.js
Normal file
175
src/api/system/user.js
Normal file
@@ -0,0 +1,175 @@
|
||||
import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params, deptId) => {
|
||||
return request({
|
||||
url: '/blade-system/user/page',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
current,
|
||||
size,
|
||||
deptId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const remove = ids => {
|
||||
return request({
|
||||
url: '/blade-system/user/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const add = row => {
|
||||
return request({
|
||||
url: '/blade-system/user/submit',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const update = row => {
|
||||
return request({
|
||||
url: '/blade-system/user/update',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const updatePlatform = (userId, userType, userExt) => {
|
||||
return request({
|
||||
url: '/blade-system/user/update-platform',
|
||||
method: 'post',
|
||||
params: {
|
||||
userId,
|
||||
userType,
|
||||
userExt,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUser = id => {
|
||||
return request({
|
||||
url: '/blade-system/user/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserPlatform = id => {
|
||||
return request({
|
||||
url: '/blade-system/user/platform-detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserInfo = () => {
|
||||
return request({
|
||||
url: '/blade-system/user/info',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const resetPassword = userIds => {
|
||||
return request({
|
||||
url: '/blade-system/user/reset-password',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const updatePassword = (oldPassword, newPassword, newPassword1) => {
|
||||
return request({
|
||||
url: '/blade-system/user/update-password',
|
||||
method: 'post',
|
||||
params: {
|
||||
oldPassword,
|
||||
newPassword,
|
||||
newPassword1,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const updateInfo = row => {
|
||||
return request({
|
||||
url: '/blade-system/user/update-info',
|
||||
method: 'post',
|
||||
data: row,
|
||||
});
|
||||
};
|
||||
|
||||
export const grant = (userIds, roleIds) => {
|
||||
return request({
|
||||
url: '/blade-system/user/grant',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
roleIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const auditPass = userIds => {
|
||||
return request({
|
||||
url: '/blade-system/user/audit-pass',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const auditRefuse = userIds => {
|
||||
return request({
|
||||
url: '/blade-system/user/audit-refuse',
|
||||
method: 'post',
|
||||
params: {
|
||||
userIds,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const setLeader = userId => {
|
||||
return request({
|
||||
url: '/blade-system/user/set-leader',
|
||||
method: 'post',
|
||||
params: {
|
||||
userId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getLeaderList = (tenantId, realName) => {
|
||||
return request({
|
||||
url: '/blade-system/user/leader-list',
|
||||
method: 'get',
|
||||
params: {
|
||||
tenantId,
|
||||
realName,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const getUserPage = (current, size, account, name) => {
|
||||
return request({
|
||||
url: '/blade-system/user/user-page',
|
||||
method: 'get',
|
||||
params: {
|
||||
current,
|
||||
size,
|
||||
account,
|
||||
name,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user