初始化

This commit is contained in:
2025-12-11 14:04:39 +08:00
commit 1f65bbf628
2676 changed files with 838983 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
namespace .Models
{
public class ErrorViewModel
{
public string? RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common
{
public class grafana_data
{
public string? device_id { get; set; } = "80";
public string? device_status { get; set; } = "0";
public string? realtime_value { get; set; }= "0";
public string? environment_value { get; set; }="0";
public string? mcu_temperature { get; set; } = "0";
public string? sensor_temperature { get; set; }= "0";
public string? sensor_humidity { get; set; } = "0";
public string? adc_raw_value { get; set; } = "0";
}
}

View File

@@ -0,0 +1,20 @@
using System.Text;
using Common;
namespace .Models
{
public class WaiBuJianKong
{
public static string WaiBuJianKongSourceFileName = "Para_copy.yaml";
public static string WaiBuJianKongTargetFileName = "C:\\Program Files\\windows_exporter\\textfile_inputs\\Para.prom";
public static string Data = "";
static WaiBuJianKong()
{
string getdata = File.ReadAllText(WaiBuJianKongSourceFileName, Encoding.UTF8);
Data = getdata;
}
public static grafana_data data = new grafana_data();
}
}