using DeviceServer.HttpServer; using System.Collections.Generic; namespace ResponseServer.HttpServer { public class ResponseBody { public int code { get; set; } public bool result { get; set; } = true; public string msg { get; set; } = "调用成功"; public int statusCode { get; set; } = 200; public List toolsInfo { get; set; } public string toolsData { get; set; } public string errorsInfo { get; set; } = ""; public string runDatasInfo { get; set; } = ""; public DeviceInfoData deviceData { get; set; } public string mainProg //主程序号 { get; set; } public string actFeed //主轴进给速度 { get; set; } public string spindleMagnification //主轴倍率 { get; set; } public string feedRateOvr //进给倍率 { get; set; } public string actSpindle //主轴转速 { get; set; } public string powerOnTime //开机时长 { 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 warnLife { get; set; } public string curTime { get; set; } } public class RunDatasInfo { /// /// 进给倍率 /// public string feedRate { get; set; } /// /// 主轴倍率 /// public string spindleMagnification { get; set; } /// /// 主轴转速 /// public string spindleSpeed { get; set; } /// /// 主轴负载 /// public string spindleLoad { get; set; } } }