31 lines
941 B
C#
31 lines
941 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Dlhis.Entity.Sys.Enums;
|
|
|
|
namespace Dlhis.Basic.Device.Request;
|
|
|
|
public class DevicePermissionSaveReuqest
|
|
{
|
|
/// <summary>
|
|
/// 分配类型 AssignTypeEnumType
|
|
/// </summary>
|
|
[EnumDataType(typeof(AssignTypeEnumType), ErrorMessage = "枚举类型错误")]
|
|
public AssignTypeEnumType AssignType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 人员档案号
|
|
/// </summary>
|
|
[Required(ErrorMessage = "人员档案号不能为空")]
|
|
public string AssignValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// 来源分配权限类型 DevicePermissionTypeEnumType
|
|
/// </summary>
|
|
[EnumDataType(typeof(DeviceAssignmentTypeEnumType), ErrorMessage = "枚举类型错误")]
|
|
public DeviceAssignmentTypeEnumType UniqueType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分配权限值不能为空
|
|
/// </summary>
|
|
public List<Guid> Codes { get; set; } = new List<Guid>();
|
|
}
|