使用json存储通道信息

This commit is contained in:
Administrator
2026-07-16 19:00:09 +08:00
parent 3b276376e8
commit 9a31174049
14 changed files with 221 additions and 101 deletions
+1
View File
@@ -94,6 +94,7 @@
<Compile Include="Hourprod.cs" />
<Compile Include="BGearEntity.cs" />
<Compile Include="SysConfig\ChallengeCode.cs" />
<Compile Include="SysConfig\ChannelConfig.cs" />
<Compile Include="SysConfig\Device.cs" />
<Compile Include="CPKModel.cs" />
<Compile Include="DeviceOEE.cs" />
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JinYuan.Models.SysConfig
{
public class ChannelConfig
{
public List<Channel> Channels { get; set; } = new List<Channel>();
}
public class Channel
{
public int ChannelId { get; set; }
public int DefaultValue { get; set; }
public List<string> Gears { get; set; } = new List<string>();
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
namespace JinYuan.Models
namespace JinYuan.Models.SysConfig
{
public class SysConfig
{