using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tiger.Model.Minsun { public class ShelfApiDto { } public class ShelfOperateOutput { public string IsSuccess { get; set; } public string ShelfNo { get; set; } // 操作类型 public string OperateType { get; set; } // 货架位置 public string LedAddr { get; set; } // 库位代码 public string LocationCode { get; set; } // PDA ID public string PdaId { get; set; } // 唯一编码 public string UniqueNumber { get; set; } // 消息 public string Message { get; set; } } // 货架操作传入对象 public class ShelfOperateInput { // 货架编号 public string ShelfNo { get; set; } public string LocationCode { get; set; } // 灯位地址 public string LedAddr { get; set; } // 操作类型 public string OperateType { get; set; } // PDA ID public string PdaId { get; set; } // 仅下架(3)指令有效,一般默认 30 秒,根据最后操作时间自动延长 public int KeepSeconds { get; set; } // 唯一编码 public string UniqueNumber { get; set; } } #region 货架 API 返回结果实体类 // 亮灯返回结果 public class ShelfApiResult { public string LightType { get; set; } public string IsSuccess { get; set; } public string ItemCode { get; set; } public string ResultValue { get; set; } public string Type { get; set; } } // 货架亮灯颜色 public enum ShelfLightColor { [Description("红色")] Red = 1, [Description("绿色")] Green = 2, [Description("蓝色")] Blue = 3, [Description("黄色")] Yellow = 4, [Description("紫色")] Purple = 5, [Description("靛蓝")] Indigo = 6, [Description("白色")] White = 7, } // 货架亮灯传入参数 public class ShelfLightParam { // 货架编号 public string ShelfNo { get; set; } // 库位编号 public string LocationCode { get; set; } // 单一货架位置 ledaddr public string LedAddr { get; set; } // 多货架位置 public string[] LedAddrList { get; set; } // 亮灯颜色 public string LightColor { get; set; } // 是否覆盖 public string IsCover { get; set; } // 操作类型 public string OperateType { get; set; } // 灯塔开关操作(开: 1,关: 0) public int OperEnum { get; set; } } #endregion }