IReportPostersManager.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using WingServerCommon.Log;
  3. using WingServerCommon.Interfaces.OpLog;
  4. namespace WingServerCommon.Interfaces.Cache
  5. {
  6. public interface IReportPostersManager : IBaseCacheManager<CacheReportPostersDTO>
  7. {
  8. }
  9. public class ReportPostersManager : CacheManager<CacheReportPostersDTO>, IReportPostersManager
  10. {
  11. public ReportPostersManager() : base()
  12. {
  13. }
  14. }
  15. public class CacheReportPostersDTO : ICacheObject
  16. {
  17. /// <summary>
  18. /// 报告转发配置编码
  19. /// </summary>
  20. public string Code { get; set; } = string.Empty;
  21. /// <summary>
  22. /// Receiver customer name
  23. /// </summary>
  24. /// <value></value>
  25. public string ReceiverName { get; set; }
  26. /// <summary>
  27. /// The contact name
  28. /// </summary>
  29. /// <value></value>
  30. public string Contact { get; set; }
  31. /// <summary>
  32. /// The contact's phone
  33. /// </summary>
  34. /// <value></value>
  35. public string Phone { get; set; }
  36. /// <summary>
  37. /// Target url
  38. /// </summary>
  39. /// <value></value>
  40. public string TargetUrl { get; set; }
  41. /// <summary>
  42. /// Template
  43. /// </summary>
  44. /// <value></value>
  45. public string Template { get; set; }
  46. /// <summary>
  47. /// The report format
  48. /// </summary>
  49. /// <value></value>
  50. public int PosterType { get; set; }
  51. /// <summary>
  52. /// The report format
  53. /// </summary>
  54. /// <value></value>
  55. public int ReportFormat { get; set; }
  56. /// <summary>
  57. /// The post action timeout, unit is second
  58. /// </summary>
  59. /// <value></value>
  60. public int PostTimeout { get; set; }
  61. /// <summary>
  62. /// Device ids
  63. /// </summary>
  64. /// <value></value>
  65. public List<string> DeviceIds { get; set; } = new List<string>();
  66. }
  67. }