using System.Text.Json.Serialization;
namespace WIDESEA_DTO.Task
{
///
/// 组盘/拆盘操作任务Dto
///
public class PalletOperationTaskDto
{
///
/// 电芯列表(组盘时必传,拆盘时不传)
///
[JsonPropertyName("cells")]
public List Cells { get; set; }
///
/// 托盘号
///
[JsonPropertyName("palletCode")]
public string PalletCode { get; set; }
///
/// 执行动作:组盘 或 拆盘
///
[JsonPropertyName("action")]
public string Action { get; set; }
///
/// 线体编号(作为任务起点地址 sourceAddress)
///
[JsonPropertyName("lineId")]
public string LineId { get; set; }
///
/// 机械手名称(用于MES设备配置查询)
///
[JsonPropertyName("robotName")]
public string RobotName { get; set; }
///
/// 仓库编号(用于查询 targetAddress 和巷道)
///
[JsonPropertyName("warehouseCode")]
public string WarehouseCode { get; set; }
///
/// 优先级,默认1
///
[JsonPropertyName("grade")]
public int Grade { get; set; } = 1;
}
///
/// 电芯项(电芯码+通道号一一对应)
///
public class PalletCellItem
{
///
/// 电芯码
///
[JsonPropertyName("sfcCode")]
public string SfcCode { get; set; }
///
/// 通道号
///
[JsonPropertyName("channel")]
public string Channel { get; set; }
}
}