平安校园
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CameraInfo.cs 3.3 KiB

4 个月前
3 个月前
4 个月前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. namespace SafeCampus.System;
  2. [SugarTable("CameraInfo", TableDescription = "摄像头信息表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. [IgnoreInitTable]
  7. public class CameraInfo : PrimaryKeyEntity
  8. {
  9. /// <summary>
  10. /// 摄像头编码
  11. /// </summary>
  12. [SugarColumn(ColumnName = "SensorId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  13. public string SensorId { get; set; }
  14. /// <summary>
  15. /// 摄像头名称
  16. /// </summary>
  17. [SugarColumn(ColumnName = "SensorName", ColumnDescription = "摄像头名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  18. public string SensorName { get; set; }
  19. /// <summary>
  20. /// 所属学校
  21. /// </summary>
  22. [SugarColumn(ColumnName = "FieldName", ColumnDescription = "所属学校", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  23. public string FieldName { get; set; }
  24. /// <summary>
  25. /// 学校ID
  26. /// </summary>
  27. [SugarColumn(ColumnName = "FieldId", ColumnDescription = "学校ID", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  28. public string FieldId { get; set; }
  29. /// <summary>
  30. /// 摄像头ip
  31. /// </summary>
  32. [SugarColumn(ColumnName = "DirectUrlIp", ColumnDescription = "摄像头ip", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  33. public string DirectUrlIp { get; set; }
  34. /// <summary>
  35. /// 摄像头在线状态
  36. /// </summary>
  37. [SugarColumn(ColumnName = "DeviceStatus", ColumnDescription = "摄像头在线状态", IsNullable = true)]
  38. public bool DeviceStatus { get; set; }
  39. /// <summary>
  40. /// 摄像头快照地址
  41. /// </summary>
  42. [SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "摄像头快照地址", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  43. public string SnapshotUrl { get; set; }
  44. /// <summary>
  45. /// 分辨率-宽度
  46. /// </summary>
  47. [SugarColumn(ColumnName = "ResWidth", ColumnDescription = "分辨率-宽度", IsNullable = true)]
  48. public int ResWidth { get; set; }
  49. /// <summary>
  50. /// 分辨率-高度
  51. /// </summary>
  52. [SugarColumn(ColumnName = "ResHeight", ColumnDescription = "分辨率-高度", IsNullable = true)]
  53. public int ResHeight { get; set; }
  54. /// <summary>
  55. /// 最后同步时间
  56. /// </summary>
  57. [SugarColumn(ColumnName = "LastTime", ColumnDescription = "最后同步时间", IsNullable = true)]
  58. public DateTime LastTime { get; set; }
  59. /// <summary>
  60. /// 摄像头分组id
  61. /// </summary>
  62. [SugarColumn(ColumnName = "GroupId", ColumnDescription = "摄像头分组id", IsNullable = true)]
  63. public long? GroupId { get; set; }
  64. /// <summary>
  65. /// 推送人id
  66. /// </summary>
  67. [SugarColumn(ColumnName = "PushUserId", ColumnDescription = "推送人id", IsNullable = true)]
  68. public long PushUserId { get; set; }
  69. /// <summary>
  70. /// 推送人
  71. /// </summary>
  72. [Navigate(NavigateType.OneToOne, nameof(PushUserId), nameof(SysUser.Id))]
  73. public SysUser SysUserItem { get; set; }
  74. /// <summary>
  75. /// 摄像头分组
  76. /// </summary>
  77. [Navigate(NavigateType.OneToOne, nameof(GroupId), nameof(CameraGroup.Id))]
  78. public CameraGroup CameraGroupItem { get; set; }
  79. }