Files
602_FD/JinYuan.Models/SysCfg/ChannelConfig.cs
T
2026-08-10 16:05:17 +08:00

31 lines
688 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JinYuan.Models
{
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>();
[JsonIgnore]
public string AllContent
{
get
{
return $"{ChannelId} {DefaultValue} {string.Join(",", Gears)}";
}
}
}
}