You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.5 KiB
TypeScript
85 lines
2.5 KiB
TypeScript
2 years ago
|
// @ts-ignore
|
||
|
/* eslint-disable */
|
||
|
import request from '@/utils/request';
|
||
|
|
||
|
/** deleteRole 权限刷新 POST /b2b2c/pbcRole/deleteRole */
|
||
|
export async function deleteRoleUsingPost(
|
||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||
|
params: API.deleteRoleUsingPOSTParams,
|
||
|
options?: { [key: string]: any },
|
||
|
) {
|
||
|
return request<API.AjaxResult>('/b2b2c/pbcRole/deleteRole', {
|
||
|
method: 'POST',
|
||
|
params: {
|
||
|
...params,
|
||
|
},
|
||
|
...(options || {}),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/** freshAuthority 权限刷新 POST /b2b2c/pbcRole/freshAuthority */
|
||
|
export async function freshAuthorityUsingPost(options?: { [key: string]: any }) {
|
||
|
return request<API.AjaxResult>('/b2b2c/pbcRole/freshAuthority', {
|
||
|
method: 'POST',
|
||
|
...(options || {}),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/** loadAuthority 页面初始化加载权限 POST /b2b2c/pbcRole/loadAuthority */
|
||
|
export async function loadAuthorityUsingPost(options?: { [key: string]: any }) {
|
||
|
return request<API.AjaxResultListPbcAuthority_>('/b2b2c/pbcRole/loadAuthority', {
|
||
|
method: 'POST',
|
||
|
...(options || {}),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/** queryAllRole 查询角色列表 POST /b2b2c/pbcRole/queryAllRole */
|
||
|
export async function queryAllRoleUsingPost(options?: { [key: string]: any }) {
|
||
|
return request<API.AjaxResultListPbcRole_>('/b2b2c/pbcRole/queryAllRole', {
|
||
|
method: 'POST',
|
||
|
...(options || {}),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/** queryAuthority 通过角色查询权限列表 POST /b2b2c/pbcRole/queryAuthority */
|
||
|
export async function queryAuthorityUsingPost(
|
||
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||
|
params: API.queryAuthorityUsingPOSTParams,
|
||
|
options?: { [key: string]: any },
|
||
|
) {
|
||
|
return request<API.AjaxResultListPbcAuthority_>('/b2b2c/pbcRole/queryAuthority', {
|
||
|
method: 'POST',
|
||
|
params: {
|
||
|
...params,
|
||
|
},
|
||
|
...(options || {}),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/** queryRoleByPage 分页查询角色列表 POST /b2b2c/pbcRole/queryRoleByPage */
|
||
|
export async function queryRoleByPageUsingPost(
|
||
|
body: API.PbcRoleDTO,
|
||
|
options?: { [key: string]: any },
|
||
|
) {
|
||
|
return request<API.AjaxResultIPagePbcRole_>('/b2b2c/pbcRole/queryRoleByPage', {
|
||
|
method: 'POST',
|
||
|
headers: {
|
||
|
'Content-Type': 'application/json',
|
||
|
},
|
||
|
data: body,
|
||
|
...(options || {}),
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/** updateRole 更新角色 POST /b2b2c/pbcRole/updateRole */
|
||
|
export async function updateRoleUsingPost(body: API.PbcRoleDTO, options?: { [key: string]: any }) {
|
||
|
return request<API.AjaxResult>('/b2b2c/pbcRole/updateRole', {
|
||
|
method: 'POST',
|
||
|
headers: {
|
||
|
'Content-Type': 'application/json',
|
||
|
},
|
||
|
data: body,
|
||
|
...(options || {}),
|
||
|
});
|
||
|
}
|