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