fix: 角色管理调整
This commit is contained in:
@@ -21,7 +21,7 @@ export function exportRole(query: Record<string, any>) {
|
||||
*/
|
||||
export function listRole(query: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/role/list',
|
||||
url: '/roleManage/v1/roles',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
@@ -34,7 +34,7 @@ export function listRole(query: Record<string, any>) {
|
||||
*/
|
||||
export function getRole(roleId: string | number) {
|
||||
return request({
|
||||
url: `/system/role/${roleId}`,
|
||||
url: `/roleManage/v1/role/${roleId}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
@@ -46,7 +46,7 @@ export function getRole(roleId: string | number) {
|
||||
*/
|
||||
export function addRole(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
url: '/roleManage/v1/role',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@@ -59,7 +59,7 @@ export function addRole(data: Record<string, any>) {
|
||||
*/
|
||||
export function updateRole(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
url: '/roleManage/v1/role',
|
||||
method: 'put',
|
||||
data: data,
|
||||
});
|
||||
@@ -72,7 +72,7 @@ export function updateRole(data: Record<string, any>) {
|
||||
*/
|
||||
export function delRole(roleId: string | number) {
|
||||
return request({
|
||||
url: `/system/role/${roleId}`,
|
||||
url: `/roleManage/v1/role/${roleId}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
@@ -85,7 +85,7 @@ export function delRole(roleId: string | number) {
|
||||
*/
|
||||
export function changeRoleStatus(roleId: string, status: string | number) {
|
||||
return request({
|
||||
url: '/system/role/changeStatus',
|
||||
url: '/roleManage/v1/role/changeStatus',
|
||||
method: 'put',
|
||||
data: {
|
||||
roleId,
|
||||
@@ -101,7 +101,7 @@ export function changeRoleStatus(roleId: string, status: string | number) {
|
||||
*/
|
||||
export function dataScope(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/role/dataScope',
|
||||
url: '/roleManage/v1/role/dataScope',
|
||||
method: 'put',
|
||||
data: data,
|
||||
});
|
||||
@@ -114,7 +114,7 @@ export function dataScope(data: Record<string, any>) {
|
||||
*/
|
||||
export function authUserAllocatedList(query: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/role/authUser/allocatedList',
|
||||
url: '/roleManage/v1/role/authUser/allocatedList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
@@ -127,7 +127,7 @@ export function authUserAllocatedList(query: Record<string, any>) {
|
||||
*/
|
||||
export function authUserChecked(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/system/role/authUser/checked',
|
||||
url: '/roleManage/v1/role/authUser/checked',
|
||||
method: 'put',
|
||||
data: data,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user