Sys_Message.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using OASystem.Domain.Enums;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Entities.System
  8. {
  9. /// <summary>
  10. /// 系统消息 表
  11. /// </summary>
  12. [SugarTable("Sys_Message")]
  13. public class Sys_Message :EntityBase
  14. {
  15. /// <summary>
  16. /// 类型
  17. /// 0
  18. /// 1 公告消息
  19. /// 2 团组流程管控消息
  20. /// 3 团组业务操作消息
  21. /// 4 费用审核消息
  22. /// 5 签证进度更新消息
  23. /// 6 任务进度更新消息
  24. /// </summary>
  25. [SugarColumn(IsNullable = true,ColumnDataType = "int")]
  26. public MessageTypeEnum Type { get; set; }
  27. /// <summary>
  28. /// 类型参数(json格式存储)
  29. /// 1 系统公告消息
  30. /// 2 团组流程管控消息
  31. /// 3 团组业务操作消息
  32. /// eg:PageId:104,Id:123,paramName:paramValue....
  33. /// 4 系统费用审核消息
  34. /// 5 签证进度更新消息
  35. /// 6 任务进度更新消息
  36. /// </summary>
  37. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
  38. public string? Param { get; set; }
  39. /// <summary>
  40. /// 发布者用户Id
  41. /// 4 管理员 Id
  42. /// </summary>
  43. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  44. public int IssuerId { get; set; } = 4;
  45. /// <summary>
  46. /// 团组Id,可为0
  47. /// </summary>
  48. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  49. public int DiId { get; set; } = 0;
  50. /// <summary>
  51. /// 消息标题
  52. /// </summary>
  53. [SugarColumn(IsNullable = true,ColumnDataType = "varchar(100)")]
  54. public string Title { get; set; }
  55. /// <summary>
  56. /// 消息内容
  57. /// </summary>
  58. [SugarColumn(IsNullable = true,ColumnDataType = "varchar(500)")]
  59. public string Content { get; set; }
  60. /// <summary>
  61. /// 发布时间
  62. /// </summary>
  63. [SugarColumn(IsNullable = true , ColumnDataType = "datetime")]
  64. public DateTime ReleaseTime { get; set; }
  65. }
  66. }