Files
Web_BLVLOG_Server_Mvc_Prod/Common/Entity.cs
2025-11-20 16:20:37 +08:00

76 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common
{
public record TempResult
{
public string resDesc { get; set; }
public TempData Result { get; set; }
}
public record TempData
{
public int RoomTypeId { get; set; }
public string RoomTypeName { get; set; }
}
public class LoginData
{
public string username { get; set; }
public string password { get; set; }
}
public class DeviceInfo
{
public int ID { get; set; }
public string ModalAddress { get; set; }
public string Name { get; set; }
public string EnglistName { get; set; }
public string TWName { get; set; }
public string TypeName { get; set; }
}
public record DeviceStatusData
{
public string? DeviceName { get; set; }
public string? DeviceType { get; set; }
public string? Address { get; set; }
public ushort Status { get; set; }
}
public class HotelInfo
{
public string code { get; set; }
}
public class WebAPIData
{
public bool IsSuccess { get; set; }
public List<JieFang> Result { get; set; }
}
public class JieFang
{
public int ID { get; set; }
public string Code { get; set; }
public string Name { get; set; }
public List<DeviceInfo> Modals { get; set; }
}
public class Block_NameList
{
public string? HotelCode { get; set; }
public string? Human { get; set; }
public List<string>? HostNumberList { get; set; }
}
//public class ReturnInfo
//{
// public bool isok { set; get; } // 是否成功true成功
// public string message { set; get; } // 传递接口信息or报错信息
// public int status { set; get; } // 服务器报错信息正确为200错误404/500等
// public object response { set; get; } // 获取到的信息本体若报错则为null
//}
}