feat 优化权限完成
This commit is contained in:
@@ -13,5 +13,5 @@ public class DeviceAssignRequest
|
||||
/// <summary>
|
||||
/// 设备code
|
||||
/// </summary>
|
||||
public List<Guid> DeviceCodes { get; set; } = new List<Guid>();
|
||||
public List<Guid> DeviceCodes { get; set; } = new();
|
||||
}
|
||||
|
||||
@@ -61,4 +61,13 @@ public class DevicePermissionSaveRequest : IValidatableObject
|
||||
yield return new ValidationResult("暂不支持角色分配", new[] { nameof(AssignType) });
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取实际分配的权限值
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string GetActualAssignValue()
|
||||
{
|
||||
return AssignType == AssignTypeEnumType.Department ? TenantId + ":" + AssignValue : AssignValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user