添加项目文件。
This commit is contained in:
109
MoviconWebApi/API/ClearDataQrApi/Models.cs
Normal file
109
MoviconWebApi/API/ClearDataQrApi/Models.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
namespace MoviconWebApi.API.ClearDataQrApi
|
||||
{
|
||||
/// <summary>
|
||||
/// 清洗数据二维码查询请求模型
|
||||
/// </summary>
|
||||
public class ClearDataQrRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备编号
|
||||
/// </summary>
|
||||
public string? DeviceCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部件二维码
|
||||
/// </summary>
|
||||
public string? PartQRCode { get; set; }
|
||||
}
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user