IGradingProtectionConfigManager.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace WingServerCommon.Interfaces.Cache
  6. {
  7. /// <summary>
  8. /// 等保配置管理
  9. /// </summary>
  10. public interface IGradingProtectionConfigManager : IBaseCacheManager<CacheGradingProtectionConfigDTO>
  11. {
  12. }
  13. public class GradingProtectionConfigManager : CacheManager<CacheGradingProtectionConfigDTO>, IGradingProtectionConfigManager
  14. {
  15. public GradingProtectionConfigManager() : base()
  16. {
  17. }
  18. }
  19. /// <summary>
  20. /// 配置缓存
  21. /// </summary>
  22. public class CacheGradingProtectionConfigDTO : ICacheObject
  23. {
  24. /// <summary>
  25. ///模块配置编码
  26. /// </summary>
  27. public string Code { get; set; } = string.Empty;
  28. /// <summary>
  29. /// 模块名称
  30. /// </summary>
  31. /// <value></value>
  32. public string Name { get; set; }
  33. /// 等保配置类型
  34. /// </summary>
  35. /// <value></value>
  36. public int ConfigType { get; set; }
  37. /// <summary>
  38. /// 配置值
  39. /// </summary>
  40. public string Value { get; set; }
  41. }
  42. }