拼写错误
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Role
|
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Role
|
||||||
{
|
{
|
||||||
public class UpdateDataScpoceInput
|
public class UpdateDataScopeInput
|
||||||
{
|
{
|
||||||
public Guid RoleId { get; set; }
|
public Guid RoleId { get; set; }
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ namespace Yi.Framework.Rbac.Application.Services.System
|
|||||||
|
|
||||||
private ISqlSugarRepository<UserRoleEntity> _userRoleRepository;
|
private ISqlSugarRepository<UserRoleEntity> _userRoleRepository;
|
||||||
|
|
||||||
public async Task UpdateDataScpoceAsync(UpdateDataScpoceInput input)
|
public async Task UpdateDataScopeAsync(UpdateDataScopeInput input)
|
||||||
{
|
{
|
||||||
//只有自定义的需要特殊处理
|
//只有自定义的需要特殊处理
|
||||||
if (input.DataScope == DataScopeEnum.CUSTOM)
|
if (input.DataScope == DataScopeEnum.CUSTOM)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const delRole = roleIds => {
|
|||||||
|
|
||||||
/** 修改角色数据权限 */
|
/** 修改角色数据权限 */
|
||||||
export const updataDataScope = data => {
|
export const updataDataScope = data => {
|
||||||
return http.request<Result>("put", `/role/data-scpoce`, { data });
|
return http.request<Result>("put", `/role/data-scope`, { data });
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 根据角色ID查询菜单下拉树结构 */
|
/** 根据角色ID查询菜单下拉树结构 */
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export function updateRole(data) {
|
|||||||
// 角色数据权限
|
// 角色数据权限
|
||||||
export function dataScope(data) {
|
export function dataScope(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/role/data-scpoce',
|
url: '/role/data-scope',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user