2021-03-26 20:09:52 +04:00
|
|
|
|
using ModelTools.BindingModels;
|
|
|
|
|
using ModelTools.Enums;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.BindingModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение информации по доступу
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class AccessGetBindingModel : GetBindingModel
|
|
|
|
|
{
|
|
|
|
|
public Guid? RoleId { get; set; }
|
2021-03-27 23:50:29 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Для вывода списка доступов по роли в контроле десктопном
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string RoleName { get; set; }
|
2021-03-26 20:09:52 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение информации по доступу
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class AccessSetBindingModel : SetBindingModel
|
|
|
|
|
{
|
|
|
|
|
public Guid RoleId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public AccessOperation Operation { get; set; }
|
|
|
|
|
|
|
|
|
|
public AccessType AccessType { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|