using DeviceServer.HttpServer; using System.Collections.Generic; namespace ResponseServer.HttpServer { public class ResponseBody { public int code { get; set; } = 0; public bool result { get; set; } = true; public string msg { get; set; } = "调用成功"; public int statusCode { get; set; } = 200; public string toolsData { get; set; } public string errorsInfo { get; set; } = ""; public string runDatasInfo { get; set; } = ""; public string deviceState //设备状态 { get; set; } = "离线"; } public class ToolsInfo { public string position { get; set; } public string number { get; set; } public string name { get; set; } public string targetLife { get; set; } //额定寿命 public string rateLife { get; set; } public string useLife { get; set; } public string curTime { get; set; } //0:时间 1:次数 public int lifeType { get; set; } = 0; } public class RunDatasInfo { public string mainProg //主程序号 { get; set; } public int partsCount //工件数 { get; set; } public string actFeedSpeed //主轴进给速度 { get; set; } public string spindleRateOvr //主轴倍率 { get; set; } public string feedRateOvr //进给倍率 { get; set; } public string spindleLoad //主轴负载 { get; set; } public string feedAxisLoad //进给轴负载 { get; set; } public string servoLoad //伺服负载 { get; set; } public string actSpindleSpeed //主轴转速 { get; set; } public string powerOnTime //开机时长 { get; set; } public string ncSysTime //nc系统时间 { get; set; } public string ncModel //nc型号 { get; set; } public string machineCoordinate //机械坐标 { get; set; } public string relativeCoordinate //相对坐标 { get; set; } public string absoluteCoordinate //绝对坐标 { get; set; } public string runMode //运行模式 { get; set; } public string ncRunTime //NC运行时间 { get; set; } public string currentToolNo //当前刀号 { get; set; } public string runStatus //运行状态 { get; set; } = "空闲"; } public class AlmInfo { public string no { get; set; } public string msg { get; set; } } }