mirror of
https://github.com/snltty/linker.git
synced 2025-12-24 12:38:04 +08:00
21 lines
577 B
C#
21 lines
577 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace cmonitor.server.ruleConfig
|
|
{
|
|
public interface IRuleConfig
|
|
{
|
|
public RuleConfigInfo Data { get; }
|
|
|
|
public void AddUser(string username);
|
|
|
|
public T Get<T>(string username,string key, T defaultValue);
|
|
public void Set<T>(string username, string key, T data);
|
|
}
|
|
|
|
[Table("rule")]
|
|
public sealed class RuleConfigInfo
|
|
{
|
|
public Dictionary<string, Dictionary<string, string>> Data { get; set; } = new Dictionary<string, Dictionary<string, string>>();
|
|
}
|
|
}
|