fix typeDesc

This commit is contained in:
2025-04-24 17:31:49 +08:00
parent 994318940d
commit 7c4654ee52

View File

@@ -12,6 +12,18 @@ public class DevicePermissionManuallyResponse
public string UserNo { get; set; }
public string UserName { get; set; }
public DeviceTypeEnumType Type { get; set; }
public string TypeDesc => Type.GetDescription();
public DeviceTypeEnumType? Type { get; set; }
public string TypeDesc
{
get
{
if (Type == null)
{
return string.Empty;
}
return Type.GetDescription();
}
}
}