NotifyDto.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using Hotline.Share.Enums.Snapshot;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Hotline.Share.Dtos.Snapshot;
  8. public class NotifyDto
  9. {
  10. }
  11. public class AddNotifyInDto
  12. {
  13. /// <summary>
  14. /// 标题
  15. /// </summary>
  16. public string Title { get; set; }
  17. /// <summary>
  18. /// 内容
  19. /// </summary>
  20. public string Content { get; set; }
  21. /// <summary>
  22. /// 类型
  23. /// </summary>
  24. public ENotificationType NotifyType { get; set; }
  25. public string ExternalId { get; set; }
  26. /// <summary>
  27. /// 用户
  28. /// </summary>
  29. public IList<string> UserIds { get; set; }
  30. }
  31. public class GetNotifyInDto : QueryFixedDto
  32. {
  33. /// <summary>
  34. /// 消息类型:
  35. /// 0: 通知公告
  36. /// 1: 宣传视频
  37. /// </summary>
  38. public ENotificationType NotifyType { get; set; }
  39. }
  40. public class GetNotifyOutDto
  41. {
  42. /// <summary>
  43. /// 通知Id
  44. /// </summary>
  45. public string NotificationId { get; set; }
  46. /// <summary>
  47. /// 标题
  48. /// </summary>
  49. public string Title { get; set; }
  50. /// <summary>
  51. /// 创建时间
  52. /// </summary>
  53. public DateTime CreationTime { get; set; }
  54. }