odf_new/server/ZR.Model/Business/Dto/OdfRacksDto.cs
zpc c11ba8aebd
Some checks are pending
continuous-integration/drone/push Build is running
21
2026-04-04 11:04:37 +08:00

78 lines
2.2 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 ZR.Model.Business.Dto
{
/// <summary>
/// 机架列表查询对象
/// </summary>
public class OdfRacksQueryDto : PagerInfo
{
public int? RoomId { get; set; }
public string RackName { get; set; }
}
/// <summary>
/// 机架列表输入输出对象
/// </summary>
public class OdfRacksDto
{
[Required(ErrorMessage = "Id不能为空")]
[ExcelColumn(Name = "Id")]
[ExcelColumnName("Id")]
public int Id { get; set; }
[Required(ErrorMessage = "机房不能为空")]
[ExcelColumn(Name = "机房")]
[ExcelColumnName("机房")]
public int RoomId { get; set; }
[Required(ErrorMessage = "序号不能为空")]
[ExcelColumn(Name = "序号")]
[ExcelColumnName("序号")]
public int SequenceNumber { get; set; }
[Required(ErrorMessage = "ODF名称不能为空")]
[ExcelColumn(Name = "ODF名称")]
[ExcelColumnName("ODF名称")]
public string RackName { get; set; }
[ExcelColumn(Name = "框数量固定9框")]
[ExcelColumnName("框数量固定9框")]
public int? FrameCount { get; set; }
[ExcelColumn(Name = "CreatedAt", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
[ExcelColumnName("CreatedAt")]
public DateTime? CreatedAt { get; set; }
[ExcelColumn(Name = "UpdatedAt", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
[ExcelColumnName("UpdatedAt")]
public DateTime? UpdatedAt { get; set; }
[ExcelColumn(Name = "机架类型")]
[ExcelColumnName("机架类型")]
public int RackType { get; set; }
}
public class OdfRacksExpertDto : OdfRacksDto
{
/// <summary>
/// 机框数量
/// </summary>
public int FramesCount { get; set; }
/// <summary>
/// 行数
/// </summary>
public int RowCount { get; set; }
/// <summary>
/// 端口数量ODF机架用光交箱固定12
/// </summary>
public int PortsCount { get; set; }
/// <summary>
/// 默认连接状态
/// </summary>
public int DefaultStatus { get; set; }
}
}