Files
MoviconHub/MoviconWebApi/API/ClearDataQrApi/Models.cs
2025-09-17 17:22:09 +08:00

120 lines
3.6 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.
namespace MoviconWebApi.API.ClearDataQrApi
{
/// <summary>
/// 清洗数据二维码查询请求模型
/// </summary>
public class ClearDataQrRequest
{
/// <summary>
/// 设备编号
/// </summary>
public string? DeviceCode { get; set; }
/// <summary>
/// 部件二维码
/// </summary>
public string? PartQRCode { get; set; }
/// <summary>
/// 当前页码从1开始
/// </summary>
public int PageNo { get; set; } = 1;
/// <summary>
/// 分页大小
/// </summary>
public int PageSize { get; set; } = 100;
}
/// <summary>
/// 清洗数据响应模型
/// </summary>
public class ClearDataQrResponse
{
public string? DeviceCode { get; set; }
public string? DeviceName { get; set; }
public string? program_process { get; set; }
public string? vehicle_model { get; set; }
public string? locomotive_number { get; set; }
public string? repair_process { get; set; }
public string? component_name { get; set; }
public string? part_position { get; set; }
public string? part_num { get; set; }
public string? part_qrid { get; set; }
public string? Test_FrameworkProgramProcessPercentage { get; set; }
public string? Test_FrameworkProgramProcess { get; set; }
public string? Test_FrameworkPerModelCleaningDuration { get; set; }
public string? Test_FrameworkPerModelCleaningAgentUsage { get; set; }
public string? Test_FrameworkPerModelWaterUsage { get; set; }
public string? WaterTank_Temp { get; set; }
public string? AgentTank_Temp { get; set; }
public string? WaterTank_Level { get; set; }
public string? AgentTank_Level { get; set; }
public string? SoakingTank1_Temp { get; set; }
public string? SoakingTank2_Temp { get; set; }
public string? Test_WaterTankHeat { get; set; }
public string? Test_WaterTankAdd { get; set; }
public string? Test_CleaningAgentTankHeat { get; set; }
public string? Test_CleaningAgentTankAdd { get; set; }
public string? Test_ElectricSurveillance { get; set; }
public string? Test_SteamSurveillance { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public string? CreateTime { get; set; }
}
/// <summary>
/// 分页查询请求模型
/// </summary>
public class ClearDataQrPagedRequest : ClearDataQrRequest
{
/// <summary>
/// 页码从1开始
/// </summary>
public int PageIndex { get; set; } = 1;
/// <summary>
/// 每页数据量
/// </summary>
public int PageSize { get; set; } = 20;
}
/// <summary>
/// 分页响应模型
/// </summary>
public class ClearDataQrPagedResponse
{
/// <summary>
/// 数据列表
/// </summary>
public List<ClearDataQrResponse> Items { get; set; } = new List<ClearDataQrResponse>();
/// <summary>
/// 总记录数
/// </summary>
public long TotalCount { get; set; }
/// <summary>
/// 当前页码
/// </summary>
public int PageIndex { get; set; }
/// <summary>
/// 每页数量
/// </summary>
public int PageSize { get; set; }
/// <summary>
/// 总页数
/// </summary>
public int TotalPages => PageSize > 0 ? (int)Math.Ceiling((double)TotalCount / PageSize) : 0;
}
}