NotifyDto.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /// </summary>
  36. public ENotificationType NotifyType { get; set; }
  37. }
  38. public class GetNotifyOutDto
  39. {
  40. /// <summary>
  41. /// 通知Id
  42. /// </summary>
  43. public string NotificationId { get; set; }
  44. /// <summary>
  45. /// 标题
  46. /// </summary>
  47. public string Title { get; set; }
  48. /// <summary>
  49. /// 创建时间
  50. /// </summary>
  51. public DateTime CreationTime { get; set; }
  52. }