fix typeDesc
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user