diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/base_device.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/base_device.cs new file mode 100644 index 0000000..242f69b --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/base_device.cs @@ -0,0 +1,304 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + [Entity(TableCnName = "设备管理",TableName = "base_device",DetailTable = new Type[] { typeof(video_channel),typeof(iot_devicedata),typeof(iot_alarm)},DetailTableCnName = "视频通道,数据归档,告警记录",DBServer = "ServiceDbContext")] + public partial class base_device:ServiceEntity + { + /// + ///设备ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="设备ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int DeviceId { get; set; } + + /// + ///设备名称 + /// + [Display(Name ="设备名称")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string DeviceName { get; set; } + + /// + ///来源适配器(类型:实例) + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="来源适配器(类型:实例)")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string AdapterCode { get; set; } + + /// + ///源系统设备ID + /// + [Display(Name ="源系统设备ID")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string SourceId { get; set; } + + /// + ///设备种类(数据字典) + /// + [Display(Name ="设备种类(数据字典)")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string DeviceCategory { get; set; } + + /// + ///设备分组(数据字典) + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="设备分组(数据字典)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string DeviceGroup { get; set; } + + /// + ///所属点位ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="所属点位ID")] + [Column(TypeName="int")] + [Editable(true)] + public int? PointId { get; set; } + + /// + ///所属网关节点ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="所属网关节点ID")] + [Column(TypeName="int")] + [Editable(true)] + public int? GatewayNodeId { get; set; } + + /// + ///是否父设备(数据字典) + /// + [Display(Name ="是否父设备(数据字典)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string IsParent { get; set; } + + /// + ///父设备ID(自引用,子设备挂父设备下) + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="父设备ID(自引用,子设备挂父设备下)")] + [Column(TypeName="int")] + [Editable(true)] + public int? ParentDeviceId { get; set; } + + /// + ///在线状态(数据字典) + /// + [Display(Name ="在线状态(数据字典)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string IsOnline { get; set; } + + /// + ///IP地址 + /// + [Display(Name ="IP地址")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string IpAddress { get; set; } + + /// + ///端口 + /// + [Display(Name ="端口")] + [Column(TypeName="int")] + [Editable(true)] + public int? Port { get; set; } + + /// + ///安装位置 + /// + [Display(Name ="安装位置")] + [MaxLength(200)] + [Column(TypeName="nvarchar(200)")] + [Editable(true)] + public string Location { get; set; } + + /// + ///纬度 + /// + [Display(Name ="纬度")] + [Column(TypeName="double")] + [Editable(true)] + public decimal? Lat { get; set; } + + /// + ///经度 + /// + [Display(Name ="经度")] + [Column(TypeName="double")] + [Editable(true)] + public decimal? Lng { get; set; } + + /// + ///三维地图模型ID + /// + [Display(Name ="三维地图模型ID")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + public string MapModelId { get; set; } + + /// + ///模型缩放比例 + /// + [Display(Name ="模型缩放比例")] + [Column(TypeName="decimal")] + [Editable(true)] + public decimal? MapModelScale { get; set; } + + /// + ///模型旋转角度(JSON) + /// + [Display(Name ="模型旋转角度(JSON)")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + public string MapModelRotation { get; set; } + + /// + ///适配器扩展数据JSON(Owl/MC4/门禁字段均存于此) + /// + [Display(Name ="适配器扩展数据JSON(Owl/MC4/门禁字段均存于此)")] + [Column(TypeName="nvarchar(max)")] + [Editable(true)] + public string ExtraData { get; set; } + + /// + ///上次同步时间 + /// + [Display(Name ="上次同步时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? LastSyncTime { get; set; } + + /// + ///启用状态(数据字典) + /// + [Display(Name ="启用状态(数据字典)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + public string Enable { get; set; } + + /// + ///备注 + /// + [Display(Name ="备注")] + [MaxLength(500)] + [Column(TypeName="nvarchar(500)")] + [Editable(true)] + public string Remark { get; set; } + + /// + ///创建人ID + /// + [Display(Name ="创建人ID")] + [Column(TypeName="int")] + [Editable(true)] + public int? CreateID { get; set; } + + /// + ///创建人 + /// + [Display(Name ="创建人")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string Creator { get; set; } + + /// + ///创建时间 + /// + [Display(Name ="创建时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? CreateDate { get; set; } + + /// + ///修改人ID + /// + [Display(Name ="修改人ID")] + [Column(TypeName="int")] + [Editable(true)] + public int? ModifyID { get; set; } + + /// + ///修改人 + /// + [Display(Name ="修改人")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string Modifier { get; set; } + + /// + ///修改时间 + /// + [Display(Name ="修改时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? ModifyDate { get; set; } + + [Display(Name ="视频通道")] + [ForeignKey("DeviceId")][Navigate(NavigateType.OneToMany,nameof(DeviceId),nameof(DeviceId))] + public List video_channel { get; set; } + + + [Display(Name ="数据归档")] + [ForeignKey("DeviceId")][Navigate(NavigateType.OneToMany,nameof(DeviceId),nameof(DeviceId))] + public List iot_devicedata { get; set; } + + + [Display(Name ="告警记录")] + [ForeignKey("DeviceId")][Navigate(NavigateType.OneToMany,nameof(DeviceId),nameof(DeviceId))] + public List iot_alarm { get; set; } + + + + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/gateway_nodes.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/gateway_nodes.cs new file mode 100644 index 0000000..d390516 --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/gateway_nodes.cs @@ -0,0 +1,170 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + [Entity(TableCnName = "设备管理_网关节点",TableName = "gateway_nodes",DBServer = "ServiceDbContext")] + public partial class gateway_nodes:ServiceEntity + { + /// + ///网关节点ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="网关节点ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int NodeId { get; set; } + + /// + ///网关唯一编码 + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="网关唯一编码")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string NodeCode { get; set; } + + /// + ///网关名称 + /// + [Display(Name ="网关名称")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string NodeName { get; set; } + + /// + ///认证令牌 + /// + [Display(Name ="认证令牌")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string NodeToken { get; set; } + + /// + ///支持的适配器类型(网关上报) + /// + [Display(Name ="支持的适配器类型(网关上报)")] + [MaxLength(200)] + [Column(TypeName="nvarchar(200)")] + [Editable(true)] + public string AdapterTypes { get; set; } + + /// + ///网关自身地址(网关上报) + /// + [Display(Name ="网关自身地址(网关上报)")] + [MaxLength(200)] + [Column(TypeName="nvarchar(200)")] + [Editable(true)] + public string BaseUrl { get; set; } + + /// + ///上次心跳时间 + /// + [Display(Name ="上次心跳时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? LastHeartbeat { get; set; } + + /// + ///在线状态(数据字典:在线/离线) + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="在线状态(数据字典:在线/离线)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + public string IsOnline { get; set; } + + /// + ///启用状态(数据字典:启用/禁用) + /// + [Display(Name ="启用状态(数据字典:启用/禁用)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + public string Enable { get; set; } + + /// + ///备注 + /// + [Display(Name ="备注")] + [MaxLength(500)] + [Column(TypeName="nvarchar(500)")] + [Editable(true)] + public string Remark { get; set; } + + /// + ///创建人ID + /// + [Display(Name ="创建人ID")] + [Column(TypeName="int")] + [Editable(true)] + public int? CreateID { get; set; } + + /// + ///创建人 + /// + [Display(Name ="创建人")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string Creator { get; set; } + + /// + ///创建时间 + /// + [Display(Name ="创建时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? CreateDate { get; set; } + + /// + ///修改人ID + /// + [Display(Name ="修改人ID")] + [Column(TypeName="int")] + [Editable(true)] + public int? ModifyID { get; set; } + + /// + ///修改人 + /// + [Display(Name ="修改人")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string Modifier { get; set; } + + /// + ///修改时间 + /// + [Display(Name ="修改时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? ModifyDate { get; set; } + + + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/iot_alarm.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/iot_alarm.cs new file mode 100644 index 0000000..00112ee --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/iot_alarm.cs @@ -0,0 +1,154 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + [Entity(TableCnName = "设备管理_告警记录",TableName = "iot_alarm",DBServer = "ServiceDbContext")] + public partial class iot_alarm:ServiceEntity + { + /// + ///告警ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="告警ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int AlarmId { get; set; } + + /// + ///源系统告警ID + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="源系统告警ID")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string SourceAlarmId { get; set; } + + /// + ///关联设备ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="关联设备ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int DeviceId { get; set; } + + /// + ///告警类型 + /// + [Display(Name ="告警类型")] + [Column(TypeName="int")] + [Editable(true)] + public int? AlarmType { get; set; } + + /// + ///告警等级(数据字典:提示/普通/重要/紧急) + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="告警等级(数据字典:提示/普通/重要/紧急)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + public string AlarmLevel { get; set; } + + /// + ///告警描述 + /// + [Display(Name ="告警描述")] + [MaxLength(500)] + [Column(TypeName="nvarchar(500)")] + [Editable(true)] + public string AlarmDesc { get; set; } + + /// + ///触发值 + /// + [Display(Name ="触发值")] + [Column(TypeName="double")] + [Editable(true)] + public decimal? AlarmValue { get; set; } + + /// + ///告警开始时间 + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="告警开始时间")] + [Column(TypeName="datetime")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public DateTime StartTime { get; set; } + + /// + ///告警结束时间 + /// + [Display(Name ="告警结束时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? EndTime { get; set; } + + /// + ///确认时间 + /// + [Display(Name ="确认时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? ConfirmTime { get; set; } + + /// + ///确认人 + /// + [Display(Name ="确认人")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string ConfirmUser { get; set; } + + /// + ///状态(数据字典:未确认/已确认/已结束) + /// + [Display(Name ="状态(数据字典:未确认/已确认/已结束)")] + [MaxLength(20)] + [Column(TypeName="nvarchar(20)")] + [Editable(true)] + public string State { get; set; } + + /// + ///来源适配器 + /// + [Display(Name ="来源适配器")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string AdapterCode { get; set; } + + /// + ///创建时间 + /// + [Display(Name ="创建时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? CreateDate { get; set; } + + + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/iot_devicedata.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/iot_devicedata.cs new file mode 100644 index 0000000..932eab1 --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/iot_devicedata.cs @@ -0,0 +1,87 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + [Entity(TableCnName = "设备管理_数据归档",TableName = "iot_devicedata",DBServer = "ServiceDbContext")] + public partial class iot_devicedata:ServiceEntity + { + /// + ///数据记录ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="数据记录ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int DataId { get; set; } + + /// + ///关联设备ID(子设备/点位) + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="关联设备ID(子设备/点位)")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int DeviceId { get; set; } + + /// + ///点位数值 + /// + [Display(Name ="点位数值")] + [Column(TypeName="double")] + [Editable(true)] + public decimal? PointValue { get; set; } + + /// + ///数据更新时间 + /// + [Display(Name ="数据更新时间")] + [Column(TypeName="datetime")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public DateTime UpdateTime { get; set; } + + /// + ///采集间隔(毫秒) + /// + [Display(Name ="采集间隔(毫秒)")] + [Column(TypeName="int")] + [Editable(true)] + public int? Interval { get; set; } + + /// + ///归档类型(1小时/2日) + /// + [Display(Name ="归档类型(1小时/2日)")] + [Column(TypeName="int")] + [Editable(true)] + public int? ArchiveType { get; set; } + + /// + ///创建时间 + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="创建时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? CreateDate { get; set; } + + + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/base_device.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/base_device.cs new file mode 100644 index 0000000..bf10cfc --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/base_device.cs @@ -0,0 +1,22 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + + public partial class base_device + { + //此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常 + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/gateway_nodes.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/gateway_nodes.cs new file mode 100644 index 0000000..32e8d35 --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/gateway_nodes.cs @@ -0,0 +1,22 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + + public partial class gateway_nodes + { + //此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常 + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/iot_alarm.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/iot_alarm.cs new file mode 100644 index 0000000..d2946c0 --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/iot_alarm.cs @@ -0,0 +1,22 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + + public partial class iot_alarm + { + //此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常 + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/iot_devicedata.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/iot_devicedata.cs new file mode 100644 index 0000000..aa8633a --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/iot_devicedata.cs @@ -0,0 +1,22 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + + public partial class iot_devicedata + { + //此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常 + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/video_channel.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/video_channel.cs new file mode 100644 index 0000000..45cb2fc --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/video_channel.cs @@ -0,0 +1,22 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + + public partial class video_channel + { + //此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常 + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/video_record.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/video_record.cs new file mode 100644 index 0000000..34fadb8 --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/partial/video_record.cs @@ -0,0 +1,22 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + + public partial class video_record + { + //此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常 + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/video_channel.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/video_channel.cs new file mode 100644 index 0000000..50dcd07 --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/video_channel.cs @@ -0,0 +1,120 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + [Entity(TableCnName = "设备管理_视频通道",TableName = "video_channel",DetailTable = new Type[] { typeof(video_record)},DetailTableCnName = "录像记录",DBServer = "ServiceDbContext")] + public partial class video_channel:ServiceEntity + { + /// + ///通道记录ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="通道记录ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int ChannelId { get; set; } + + /// + ///Owl系统通道ID + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="Owl系统通道ID")] + [MaxLength(64)] + [Column(TypeName="nvarchar(64)")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public string OwlChannelId { get; set; } + + /// + ///关联Base_Device设备ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="关联Base_Device设备ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int DeviceId { get; set; } + + /// + ///Owl流应用名 + /// + [Display(Name ="Owl流应用名")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string OwlStreamApp { get; set; } + + /// + ///Owl流名称 + /// + [Display(Name ="Owl流名称")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + public string OwlStreamName { get; set; } + + /// + ///是否支持云台 + /// + [Display(Name ="是否支持云台")] + [Column(TypeName="tinyint")] + [Editable(true)] + public byte? HasPtz { get; set; } + + /// + ///是否支持录像 + /// + [Display(Name ="是否支持录像")] + [Column(TypeName="tinyint")] + [Editable(true)] + public byte? HasRecording { get; set; } + + /// + ///录像模式 + /// + [Display(Name ="录像模式")] + [Column(TypeName="int")] + [Editable(true)] + public int? RecordMode { get; set; } + + /// + ///快照地址 + /// + [Display(Name ="快照地址")] + [MaxLength(500)] + [Column(TypeName="nvarchar(500)")] + [Editable(true)] + public string SnapshotUrl { get; set; } + + /// + ///创建时间 + /// + [Display(Name ="创建时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? CreateDate { get; set; } + + [Display(Name ="录像记录")] + [ForeignKey("ChannelId")][Navigate(NavigateType.OneToMany,nameof(ChannelId),nameof(ChannelId))] + public List video_record { get; set; } + + + + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/video_record.cs b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/video_record.cs new file mode 100644 index 0000000..d53bedf --- /dev/null +++ b/api_sqlsugar/VolPro.Entity/DomainModels/device_manager/video_record.cs @@ -0,0 +1,123 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果数据库字段发生变化,请在代码生器重新生成此Model + */ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using VolPro.Entity.SystemModels; + +namespace VolPro.Entity.DomainModels +{ + [Entity(TableCnName = "设备管理_录像记录",TableName = "video_record",DBServer = "ServiceDbContext")] + public partial class video_record:ServiceEntity + { + /// + ///录像记录ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="录像记录ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int RecordId { get; set; } + + /// + ///关联通道ID + /// + [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] + [Key] + [Display(Name ="关联通道ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int ChannelId { get; set; } + + /// + ///Owl录像记录ID + /// + [Display(Name ="Owl录像记录ID")] + [Column(TypeName="int")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public int OwlRecordId { get; set; } + + /// + ///应用名 + /// + [Display(Name ="应用名")] + [MaxLength(50)] + [Column(TypeName="nvarchar(50)")] + [Editable(true)] + public string App { get; set; } + + /// + ///流ID + /// + [Display(Name ="流ID")] + [MaxLength(100)] + [Column(TypeName="nvarchar(100)")] + [Editable(true)] + public string Stream { get; set; } + + /// + ///录像开始时间 + /// + [SugarColumn(IsPrimaryKey = true)] + [Key] + [Display(Name ="录像开始时间")] + [Column(TypeName="datetime")] + [Editable(true)] + [Required(AllowEmptyStrings=false)] + public DateTime StartedAt { get; set; } + + /// + ///录像结束时间 + /// + [Display(Name ="录像结束时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? EndedAt { get; set; } + + /// + ///录像时长(秒) + /// + [Display(Name ="录像时长(秒)")] + [Column(TypeName="double")] + [Editable(true)] + public decimal? Duration { get; set; } + + /// + ///文件路径 + /// + [Display(Name ="文件路径")] + [MaxLength(500)] + [Column(TypeName="nvarchar(500)")] + [Editable(true)] + public string FilePath { get; set; } + + /// + ///文件大小(字节) + /// + [Display(Name ="文件大小(字节)")] + [Column(TypeName="bigint")] + [Editable(true)] + public long? FileSize { get; set; } + + /// + ///创建时间 + /// + [Display(Name ="创建时间")] + [Column(TypeName="datetime")] + [Editable(true)] + public DateTime? CreateDate { get; set; } + + + } +} \ No newline at end of file diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/base_deviceController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/base_deviceController.cs new file mode 100644 index 0000000..5530382 --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/base_deviceController.cs @@ -0,0 +1,33 @@ +/* + *接口编写处... +*如果接口需要做Action的权限验证,请在Action上使用属性 +*如: [ApiActionPermission("base_device",Enums.ActionPermissionOptions.Search)] + */ +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using VolPro.Entity.DomainModels; +using Warehouse.IServices; + +namespace Warehouse.Controllers +{ + public partial class base_deviceController + { + private readonly Ibase_deviceService _service;//访问业务代码 + private readonly IHttpContextAccessor _httpContextAccessor; + + [ActivatorUtilitiesConstructor] + public base_deviceController( + Ibase_deviceService service, + IHttpContextAccessor httpContextAccessor + ) + : base(service) + { + _service = service; + _httpContextAccessor = httpContextAccessor; + } + } +} diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/gateway_nodesController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/gateway_nodesController.cs new file mode 100644 index 0000000..2e6bac6 --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/gateway_nodesController.cs @@ -0,0 +1,33 @@ +/* + *接口编写处... +*如果接口需要做Action的权限验证,请在Action上使用属性 +*如: [ApiActionPermission("gateway_nodes",Enums.ActionPermissionOptions.Search)] + */ +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using VolPro.Entity.DomainModels; +using Warehouse.IServices; + +namespace Warehouse.Controllers +{ + public partial class gateway_nodesController + { + private readonly Igateway_nodesService _service;//访问业务代码 + private readonly IHttpContextAccessor _httpContextAccessor; + + [ActivatorUtilitiesConstructor] + public gateway_nodesController( + Igateway_nodesService service, + IHttpContextAccessor httpContextAccessor + ) + : base(service) + { + _service = service; + _httpContextAccessor = httpContextAccessor; + } + } +} diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/iot_alarmController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/iot_alarmController.cs new file mode 100644 index 0000000..829aba1 --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/iot_alarmController.cs @@ -0,0 +1,33 @@ +/* + *接口编写处... +*如果接口需要做Action的权限验证,请在Action上使用属性 +*如: [ApiActionPermission("iot_alarm",Enums.ActionPermissionOptions.Search)] + */ +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using VolPro.Entity.DomainModels; +using Warehouse.IServices; + +namespace Warehouse.Controllers +{ + public partial class iot_alarmController + { + private readonly Iiot_alarmService _service;//访问业务代码 + private readonly IHttpContextAccessor _httpContextAccessor; + + [ActivatorUtilitiesConstructor] + public iot_alarmController( + Iiot_alarmService service, + IHttpContextAccessor httpContextAccessor + ) + : base(service) + { + _service = service; + _httpContextAccessor = httpContextAccessor; + } + } +} diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/iot_devicedataController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/iot_devicedataController.cs new file mode 100644 index 0000000..6d35d9f --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/iot_devicedataController.cs @@ -0,0 +1,33 @@ +/* + *接口编写处... +*如果接口需要做Action的权限验证,请在Action上使用属性 +*如: [ApiActionPermission("iot_devicedata",Enums.ActionPermissionOptions.Search)] + */ +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using VolPro.Entity.DomainModels; +using Warehouse.IServices; + +namespace Warehouse.Controllers +{ + public partial class iot_devicedataController + { + private readonly Iiot_devicedataService _service;//访问业务代码 + private readonly IHttpContextAccessor _httpContextAccessor; + + [ActivatorUtilitiesConstructor] + public iot_devicedataController( + Iiot_devicedataService service, + IHttpContextAccessor httpContextAccessor + ) + : base(service) + { + _service = service; + _httpContextAccessor = httpContextAccessor; + } + } +} diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/video_channelController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/video_channelController.cs new file mode 100644 index 0000000..37cb662 --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/video_channelController.cs @@ -0,0 +1,33 @@ +/* + *接口编写处... +*如果接口需要做Action的权限验证,请在Action上使用属性 +*如: [ApiActionPermission("video_channel",Enums.ActionPermissionOptions.Search)] + */ +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using VolPro.Entity.DomainModels; +using Warehouse.IServices; + +namespace Warehouse.Controllers +{ + public partial class video_channelController + { + private readonly Ivideo_channelService _service;//访问业务代码 + private readonly IHttpContextAccessor _httpContextAccessor; + + [ActivatorUtilitiesConstructor] + public video_channelController( + Ivideo_channelService service, + IHttpContextAccessor httpContextAccessor + ) + : base(service) + { + _service = service; + _httpContextAccessor = httpContextAccessor; + } + } +} diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/video_recordController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/video_recordController.cs new file mode 100644 index 0000000..5e4d0fd --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/Partial/video_recordController.cs @@ -0,0 +1,33 @@ +/* + *接口编写处... +*如果接口需要做Action的权限验证,请在Action上使用属性 +*如: [ApiActionPermission("video_record",Enums.ActionPermissionOptions.Search)] + */ +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using VolPro.Entity.DomainModels; +using Warehouse.IServices; + +namespace Warehouse.Controllers +{ + public partial class video_recordController + { + private readonly Ivideo_recordService _service;//访问业务代码 + private readonly IHttpContextAccessor _httpContextAccessor; + + [ActivatorUtilitiesConstructor] + public video_recordController( + Ivideo_recordService service, + IHttpContextAccessor httpContextAccessor + ) + : base(service) + { + _service = service; + _httpContextAccessor = httpContextAccessor; + } + } +} diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/base_deviceController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/base_deviceController.cs new file mode 100644 index 0000000..7f5322c --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/base_deviceController.cs @@ -0,0 +1,21 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果要增加方法请在当前目录下Partial文件夹base_deviceController编写 + */ +using Microsoft.AspNetCore.Mvc; +using VolPro.Core.Controllers.Basic; +using VolPro.Entity.AttributeManager; +using Warehouse.IServices; +namespace Warehouse.Controllers +{ + [Route("api/base_device")] + [PermissionTable(Name = "base_device")] + public partial class base_deviceController : ApiBaseController + { + public base_deviceController(Ibase_deviceService service) + : base(service) + { + } + } +} + diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/gateway_nodesController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/gateway_nodesController.cs new file mode 100644 index 0000000..03a9e03 --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/gateway_nodesController.cs @@ -0,0 +1,21 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果要增加方法请在当前目录下Partial文件夹gateway_nodesController编写 + */ +using Microsoft.AspNetCore.Mvc; +using VolPro.Core.Controllers.Basic; +using VolPro.Entity.AttributeManager; +using Warehouse.IServices; +namespace Warehouse.Controllers +{ + [Route("api/gateway_nodes")] + [PermissionTable(Name = "gateway_nodes")] + public partial class gateway_nodesController : ApiBaseController + { + public gateway_nodesController(Igateway_nodesService service) + : base(service) + { + } + } +} + diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/iot_alarmController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/iot_alarmController.cs new file mode 100644 index 0000000..6f3244d --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/iot_alarmController.cs @@ -0,0 +1,21 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果要增加方法请在当前目录下Partial文件夹iot_alarmController编写 + */ +using Microsoft.AspNetCore.Mvc; +using VolPro.Core.Controllers.Basic; +using VolPro.Entity.AttributeManager; +using Warehouse.IServices; +namespace Warehouse.Controllers +{ + [Route("api/iot_alarm")] + [PermissionTable(Name = "iot_alarm")] + public partial class iot_alarmController : ApiBaseController + { + public iot_alarmController(Iiot_alarmService service) + : base(service) + { + } + } +} + diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/iot_devicedataController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/iot_devicedataController.cs new file mode 100644 index 0000000..5d71c77 --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/iot_devicedataController.cs @@ -0,0 +1,21 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果要增加方法请在当前目录下Partial文件夹iot_devicedataController编写 + */ +using Microsoft.AspNetCore.Mvc; +using VolPro.Core.Controllers.Basic; +using VolPro.Entity.AttributeManager; +using Warehouse.IServices; +namespace Warehouse.Controllers +{ + [Route("api/iot_devicedata")] + [PermissionTable(Name = "iot_devicedata")] + public partial class iot_devicedataController : ApiBaseController + { + public iot_devicedataController(Iiot_devicedataService service) + : base(service) + { + } + } +} + diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/video_channelController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/video_channelController.cs new file mode 100644 index 0000000..905b9a7 --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/video_channelController.cs @@ -0,0 +1,21 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果要增加方法请在当前目录下Partial文件夹video_channelController编写 + */ +using Microsoft.AspNetCore.Mvc; +using VolPro.Core.Controllers.Basic; +using VolPro.Entity.AttributeManager; +using Warehouse.IServices; +namespace Warehouse.Controllers +{ + [Route("api/video_channel")] + [PermissionTable(Name = "video_channel")] + public partial class video_channelController : ApiBaseController + { + public video_channelController(Ivideo_channelService service) + : base(service) + { + } + } +} + diff --git a/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/video_recordController.cs b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/video_recordController.cs new file mode 100644 index 0000000..caf774d --- /dev/null +++ b/api_sqlsugar/VolPro.WebApi/Controllers/Warehouse/video_recordController.cs @@ -0,0 +1,21 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *如果要增加方法请在当前目录下Partial文件夹video_recordController编写 + */ +using Microsoft.AspNetCore.Mvc; +using VolPro.Core.Controllers.Basic; +using VolPro.Entity.AttributeManager; +using Warehouse.IServices; +namespace Warehouse.Controllers +{ + [Route("api/video_record")] + [PermissionTable(Name = "video_record")] + public partial class video_recordController : ApiBaseController + { + public video_recordController(Ivideo_recordService service) + : base(service) + { + } + } +} + diff --git a/api_sqlsugar/Warehouse/IRepositories/device_manager/Ibase_deviceRepository.cs b/api_sqlsugar/Warehouse/IRepositories/device_manager/Ibase_deviceRepository.cs new file mode 100644 index 0000000..f5fe128 --- /dev/null +++ b/api_sqlsugar/Warehouse/IRepositories/device_manager/Ibase_deviceRepository.cs @@ -0,0 +1,18 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹Ibase_deviceRepository编写接口 + */ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Extensions.AutofacManager; +namespace Warehouse.IRepositories +{ + public partial interface Ibase_deviceRepository : IDependency,IRepository + { + } +} diff --git a/api_sqlsugar/Warehouse/IRepositories/device_manager/Igateway_nodesRepository.cs b/api_sqlsugar/Warehouse/IRepositories/device_manager/Igateway_nodesRepository.cs new file mode 100644 index 0000000..f437fdb --- /dev/null +++ b/api_sqlsugar/Warehouse/IRepositories/device_manager/Igateway_nodesRepository.cs @@ -0,0 +1,18 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹Igateway_nodesRepository编写接口 + */ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Extensions.AutofacManager; +namespace Warehouse.IRepositories +{ + public partial interface Igateway_nodesRepository : IDependency,IRepository + { + } +} diff --git a/api_sqlsugar/Warehouse/IRepositories/device_manager/Iiot_alarmRepository.cs b/api_sqlsugar/Warehouse/IRepositories/device_manager/Iiot_alarmRepository.cs new file mode 100644 index 0000000..8b950c0 --- /dev/null +++ b/api_sqlsugar/Warehouse/IRepositories/device_manager/Iiot_alarmRepository.cs @@ -0,0 +1,18 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹Iiot_alarmRepository编写接口 + */ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Extensions.AutofacManager; +namespace Warehouse.IRepositories +{ + public partial interface Iiot_alarmRepository : IDependency,IRepository + { + } +} diff --git a/api_sqlsugar/Warehouse/IRepositories/device_manager/Iiot_devicedataRepository.cs b/api_sqlsugar/Warehouse/IRepositories/device_manager/Iiot_devicedataRepository.cs new file mode 100644 index 0000000..b704d6c --- /dev/null +++ b/api_sqlsugar/Warehouse/IRepositories/device_manager/Iiot_devicedataRepository.cs @@ -0,0 +1,18 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹Iiot_devicedataRepository编写接口 + */ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Extensions.AutofacManager; +namespace Warehouse.IRepositories +{ + public partial interface Iiot_devicedataRepository : IDependency,IRepository + { + } +} diff --git a/api_sqlsugar/Warehouse/IRepositories/device_manager/Ivideo_channelRepository.cs b/api_sqlsugar/Warehouse/IRepositories/device_manager/Ivideo_channelRepository.cs new file mode 100644 index 0000000..d407009 --- /dev/null +++ b/api_sqlsugar/Warehouse/IRepositories/device_manager/Ivideo_channelRepository.cs @@ -0,0 +1,18 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹Ivideo_channelRepository编写接口 + */ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Extensions.AutofacManager; +namespace Warehouse.IRepositories +{ + public partial interface Ivideo_channelRepository : IDependency,IRepository + { + } +} diff --git a/api_sqlsugar/Warehouse/IRepositories/device_manager/Ivideo_recordRepository.cs b/api_sqlsugar/Warehouse/IRepositories/device_manager/Ivideo_recordRepository.cs new file mode 100644 index 0000000..26a363c --- /dev/null +++ b/api_sqlsugar/Warehouse/IRepositories/device_manager/Ivideo_recordRepository.cs @@ -0,0 +1,18 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹Ivideo_recordRepository编写接口 + */ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Extensions.AutofacManager; +namespace Warehouse.IRepositories +{ + public partial interface Ivideo_recordRepository : IDependency,IRepository + { + } +} diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Ibase_deviceService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Ibase_deviceService.cs new file mode 100644 index 0000000..d14655a --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Ibase_deviceService.cs @@ -0,0 +1,12 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + */ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; + +namespace Warehouse.IServices +{ + public partial interface Ibase_deviceService : IService + { + } +} diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Igateway_nodesService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Igateway_nodesService.cs new file mode 100644 index 0000000..e76573f --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Igateway_nodesService.cs @@ -0,0 +1,12 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + */ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; + +namespace Warehouse.IServices +{ + public partial interface Igateway_nodesService : IService + { + } +} diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Iiot_alarmService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Iiot_alarmService.cs new file mode 100644 index 0000000..7617ea6 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Iiot_alarmService.cs @@ -0,0 +1,12 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + */ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; + +namespace Warehouse.IServices +{ + public partial interface Iiot_alarmService : IService + { + } +} diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Iiot_devicedataService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Iiot_devicedataService.cs new file mode 100644 index 0000000..04cbf33 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Iiot_devicedataService.cs @@ -0,0 +1,12 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + */ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; + +namespace Warehouse.IServices +{ + public partial interface Iiot_devicedataService : IService + { + } +} diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Ivideo_channelService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Ivideo_channelService.cs new file mode 100644 index 0000000..6006eb5 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Ivideo_channelService.cs @@ -0,0 +1,12 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + */ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; + +namespace Warehouse.IServices +{ + public partial interface Ivideo_channelService : IService + { + } +} diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Ivideo_recordService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Ivideo_recordService.cs new file mode 100644 index 0000000..d021e97 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Ivideo_recordService.cs @@ -0,0 +1,12 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + */ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; + +namespace Warehouse.IServices +{ + public partial interface Ivideo_recordService : IService + { + } +} diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ibase_deviceService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ibase_deviceService.cs new file mode 100644 index 0000000..9783000 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ibase_deviceService.cs @@ -0,0 +1,13 @@ +/* +*所有关于base_device类的业务代码接口应在此处编写 +*/ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +namespace Warehouse.IServices +{ + public partial interface Ibase_deviceService + { + } + } diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Igateway_nodesService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Igateway_nodesService.cs new file mode 100644 index 0000000..b0d6ea9 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Igateway_nodesService.cs @@ -0,0 +1,13 @@ +/* +*所有关于gateway_nodes类的业务代码接口应在此处编写 +*/ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +namespace Warehouse.IServices +{ + public partial interface Igateway_nodesService + { + } + } diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Iiot_alarmService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Iiot_alarmService.cs new file mode 100644 index 0000000..c9ae1ee --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Iiot_alarmService.cs @@ -0,0 +1,13 @@ +/* +*所有关于iot_alarm类的业务代码接口应在此处编写 +*/ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +namespace Warehouse.IServices +{ + public partial interface Iiot_alarmService + { + } + } diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Iiot_devicedataService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Iiot_devicedataService.cs new file mode 100644 index 0000000..78b0a02 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Iiot_devicedataService.cs @@ -0,0 +1,13 @@ +/* +*所有关于iot_devicedata类的业务代码接口应在此处编写 +*/ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +namespace Warehouse.IServices +{ + public partial interface Iiot_devicedataService + { + } + } diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ivideo_channelService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ivideo_channelService.cs new file mode 100644 index 0000000..b456659 --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ivideo_channelService.cs @@ -0,0 +1,13 @@ +/* +*所有关于video_channel类的业务代码接口应在此处编写 +*/ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +namespace Warehouse.IServices +{ + public partial interface Ivideo_channelService + { + } + } diff --git a/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ivideo_recordService.cs b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ivideo_recordService.cs new file mode 100644 index 0000000..33a70ed --- /dev/null +++ b/api_sqlsugar/Warehouse/IServices/device_manager/Partial/Ivideo_recordService.cs @@ -0,0 +1,13 @@ +/* +*所有关于video_record类的业务代码接口应在此处编写 +*/ +using VolPro.Core.BaseProvider; +using VolPro.Entity.DomainModels; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +namespace Warehouse.IServices +{ + public partial interface Ivideo_recordService + { + } + } diff --git a/api_sqlsugar/Warehouse/Repositories/device_manager/base_deviceRepository.cs b/api_sqlsugar/Warehouse/Repositories/device_manager/base_deviceRepository.cs new file mode 100644 index 0000000..4c296ee --- /dev/null +++ b/api_sqlsugar/Warehouse/Repositories/device_manager/base_deviceRepository.cs @@ -0,0 +1,24 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹base_deviceRepository编写代码 + */ +using Warehouse.IRepositories; +using VolPro.Core.BaseProvider; +using VolPro.Core.EFDbContext; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Repositories +{ + public partial class base_deviceRepository : RepositoryBase , Ibase_deviceRepository + { + public base_deviceRepository(ServiceDbContext dbContext) + : base(dbContext) + { + + } + public static Ibase_deviceRepository Instance + { + get { return AutofacContainerModule.GetService(); } } + } +} diff --git a/api_sqlsugar/Warehouse/Repositories/device_manager/gateway_nodesRepository.cs b/api_sqlsugar/Warehouse/Repositories/device_manager/gateway_nodesRepository.cs new file mode 100644 index 0000000..0daff31 --- /dev/null +++ b/api_sqlsugar/Warehouse/Repositories/device_manager/gateway_nodesRepository.cs @@ -0,0 +1,24 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹gateway_nodesRepository编写代码 + */ +using Warehouse.IRepositories; +using VolPro.Core.BaseProvider; +using VolPro.Core.EFDbContext; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Repositories +{ + public partial class gateway_nodesRepository : RepositoryBase , Igateway_nodesRepository + { + public gateway_nodesRepository(ServiceDbContext dbContext) + : base(dbContext) + { + + } + public static Igateway_nodesRepository Instance + { + get { return AutofacContainerModule.GetService(); } } + } +} diff --git a/api_sqlsugar/Warehouse/Repositories/device_manager/iot_alarmRepository.cs b/api_sqlsugar/Warehouse/Repositories/device_manager/iot_alarmRepository.cs new file mode 100644 index 0000000..8321034 --- /dev/null +++ b/api_sqlsugar/Warehouse/Repositories/device_manager/iot_alarmRepository.cs @@ -0,0 +1,24 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹iot_alarmRepository编写代码 + */ +using Warehouse.IRepositories; +using VolPro.Core.BaseProvider; +using VolPro.Core.EFDbContext; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Repositories +{ + public partial class iot_alarmRepository : RepositoryBase , Iiot_alarmRepository + { + public iot_alarmRepository(ServiceDbContext dbContext) + : base(dbContext) + { + + } + public static Iiot_alarmRepository Instance + { + get { return AutofacContainerModule.GetService(); } } + } +} diff --git a/api_sqlsugar/Warehouse/Repositories/device_manager/iot_devicedataRepository.cs b/api_sqlsugar/Warehouse/Repositories/device_manager/iot_devicedataRepository.cs new file mode 100644 index 0000000..dc51e96 --- /dev/null +++ b/api_sqlsugar/Warehouse/Repositories/device_manager/iot_devicedataRepository.cs @@ -0,0 +1,24 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹iot_devicedataRepository编写代码 + */ +using Warehouse.IRepositories; +using VolPro.Core.BaseProvider; +using VolPro.Core.EFDbContext; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Repositories +{ + public partial class iot_devicedataRepository : RepositoryBase , Iiot_devicedataRepository + { + public iot_devicedataRepository(ServiceDbContext dbContext) + : base(dbContext) + { + + } + public static Iiot_devicedataRepository Instance + { + get { return AutofacContainerModule.GetService(); } } + } +} diff --git a/api_sqlsugar/Warehouse/Repositories/device_manager/video_channelRepository.cs b/api_sqlsugar/Warehouse/Repositories/device_manager/video_channelRepository.cs new file mode 100644 index 0000000..66a61c0 --- /dev/null +++ b/api_sqlsugar/Warehouse/Repositories/device_manager/video_channelRepository.cs @@ -0,0 +1,24 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹video_channelRepository编写代码 + */ +using Warehouse.IRepositories; +using VolPro.Core.BaseProvider; +using VolPro.Core.EFDbContext; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Repositories +{ + public partial class video_channelRepository : RepositoryBase , Ivideo_channelRepository + { + public video_channelRepository(ServiceDbContext dbContext) + : base(dbContext) + { + + } + public static Ivideo_channelRepository Instance + { + get { return AutofacContainerModule.GetService(); } } + } +} diff --git a/api_sqlsugar/Warehouse/Repositories/device_manager/video_recordRepository.cs b/api_sqlsugar/Warehouse/Repositories/device_manager/video_recordRepository.cs new file mode 100644 index 0000000..b22c317 --- /dev/null +++ b/api_sqlsugar/Warehouse/Repositories/device_manager/video_recordRepository.cs @@ -0,0 +1,24 @@ +/* + *代码由框架生成,任何更改都可能导致被代码生成器覆盖 + *Repository提供数据库操作,如果要增加数据库操作请在当前目录下Partial文件夹video_recordRepository编写代码 + */ +using Warehouse.IRepositories; +using VolPro.Core.BaseProvider; +using VolPro.Core.EFDbContext; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Repositories +{ + public partial class video_recordRepository : RepositoryBase , Ivideo_recordRepository + { + public video_recordRepository(ServiceDbContext dbContext) + : base(dbContext) + { + + } + public static Ivideo_recordRepository Instance + { + get { return AutofacContainerModule.GetService(); } } + } +} diff --git a/api_sqlsugar/Warehouse/Services/device_manager/Partial/base_deviceService.cs b/api_sqlsugar/Warehouse/Services/device_manager/Partial/base_deviceService.cs new file mode 100644 index 0000000..65367d0 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/Partial/base_deviceService.cs @@ -0,0 +1,41 @@ +/* + *所有关于base_device类的业务代码应在此处编写 +*可使用repository.调用常用方法,获取EF/Dapper等信息 +*如果需要事务请使用repository.DbContextBeginTransaction +*也可使用DBServerProvider.手动获取数据库相关信息 +*用户信息、权限、角色等使用UserContext.Current操作 +*base_deviceService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter +*/ +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; +using System.Linq; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +using VolPro.Core.Extensions; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using Warehouse.IRepositories; + +namespace Warehouse.Services +{ + public partial class base_deviceService + { + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly Ibase_deviceRepository _repository;//访问数据库 + + [ActivatorUtilitiesConstructor] + public base_deviceService( + Ibase_deviceRepository dbRepository, + IHttpContextAccessor httpContextAccessor + ) + : base(dbRepository) + { + _httpContextAccessor = httpContextAccessor; + _repository = dbRepository; + //多租户会用到这init代码,其他情况可以不用 + //base.Init(dbRepository); + } + } +} diff --git a/api_sqlsugar/Warehouse/Services/device_manager/Partial/gateway_nodesService.cs b/api_sqlsugar/Warehouse/Services/device_manager/Partial/gateway_nodesService.cs new file mode 100644 index 0000000..24e8533 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/Partial/gateway_nodesService.cs @@ -0,0 +1,41 @@ +/* + *所有关于gateway_nodes类的业务代码应在此处编写 +*可使用repository.调用常用方法,获取EF/Dapper等信息 +*如果需要事务请使用repository.DbContextBeginTransaction +*也可使用DBServerProvider.手动获取数据库相关信息 +*用户信息、权限、角色等使用UserContext.Current操作 +*gateway_nodesService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter +*/ +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; +using System.Linq; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +using VolPro.Core.Extensions; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using Warehouse.IRepositories; + +namespace Warehouse.Services +{ + public partial class gateway_nodesService + { + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly Igateway_nodesRepository _repository;//访问数据库 + + [ActivatorUtilitiesConstructor] + public gateway_nodesService( + Igateway_nodesRepository dbRepository, + IHttpContextAccessor httpContextAccessor + ) + : base(dbRepository) + { + _httpContextAccessor = httpContextAccessor; + _repository = dbRepository; + //多租户会用到这init代码,其他情况可以不用 + //base.Init(dbRepository); + } + } +} diff --git a/api_sqlsugar/Warehouse/Services/device_manager/Partial/iot_alarmService.cs b/api_sqlsugar/Warehouse/Services/device_manager/Partial/iot_alarmService.cs new file mode 100644 index 0000000..c21b297 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/Partial/iot_alarmService.cs @@ -0,0 +1,41 @@ +/* + *所有关于iot_alarm类的业务代码应在此处编写 +*可使用repository.调用常用方法,获取EF/Dapper等信息 +*如果需要事务请使用repository.DbContextBeginTransaction +*也可使用DBServerProvider.手动获取数据库相关信息 +*用户信息、权限、角色等使用UserContext.Current操作 +*iot_alarmService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter +*/ +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; +using System.Linq; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +using VolPro.Core.Extensions; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using Warehouse.IRepositories; + +namespace Warehouse.Services +{ + public partial class iot_alarmService + { + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly Iiot_alarmRepository _repository;//访问数据库 + + [ActivatorUtilitiesConstructor] + public iot_alarmService( + Iiot_alarmRepository dbRepository, + IHttpContextAccessor httpContextAccessor + ) + : base(dbRepository) + { + _httpContextAccessor = httpContextAccessor; + _repository = dbRepository; + //多租户会用到这init代码,其他情况可以不用 + //base.Init(dbRepository); + } + } +} diff --git a/api_sqlsugar/Warehouse/Services/device_manager/Partial/iot_devicedataService.cs b/api_sqlsugar/Warehouse/Services/device_manager/Partial/iot_devicedataService.cs new file mode 100644 index 0000000..7b04c99 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/Partial/iot_devicedataService.cs @@ -0,0 +1,41 @@ +/* + *所有关于iot_devicedata类的业务代码应在此处编写 +*可使用repository.调用常用方法,获取EF/Dapper等信息 +*如果需要事务请使用repository.DbContextBeginTransaction +*也可使用DBServerProvider.手动获取数据库相关信息 +*用户信息、权限、角色等使用UserContext.Current操作 +*iot_devicedataService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter +*/ +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; +using System.Linq; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +using VolPro.Core.Extensions; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using Warehouse.IRepositories; + +namespace Warehouse.Services +{ + public partial class iot_devicedataService + { + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly Iiot_devicedataRepository _repository;//访问数据库 + + [ActivatorUtilitiesConstructor] + public iot_devicedataService( + Iiot_devicedataRepository dbRepository, + IHttpContextAccessor httpContextAccessor + ) + : base(dbRepository) + { + _httpContextAccessor = httpContextAccessor; + _repository = dbRepository; + //多租户会用到这init代码,其他情况可以不用 + //base.Init(dbRepository); + } + } +} diff --git a/api_sqlsugar/Warehouse/Services/device_manager/Partial/video_channelService.cs b/api_sqlsugar/Warehouse/Services/device_manager/Partial/video_channelService.cs new file mode 100644 index 0000000..e940e1d --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/Partial/video_channelService.cs @@ -0,0 +1,41 @@ +/* + *所有关于video_channel类的业务代码应在此处编写 +*可使用repository.调用常用方法,获取EF/Dapper等信息 +*如果需要事务请使用repository.DbContextBeginTransaction +*也可使用DBServerProvider.手动获取数据库相关信息 +*用户信息、权限、角色等使用UserContext.Current操作 +*video_channelService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter +*/ +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; +using System.Linq; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +using VolPro.Core.Extensions; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using Warehouse.IRepositories; + +namespace Warehouse.Services +{ + public partial class video_channelService + { + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly Ivideo_channelRepository _repository;//访问数据库 + + [ActivatorUtilitiesConstructor] + public video_channelService( + Ivideo_channelRepository dbRepository, + IHttpContextAccessor httpContextAccessor + ) + : base(dbRepository) + { + _httpContextAccessor = httpContextAccessor; + _repository = dbRepository; + //多租户会用到这init代码,其他情况可以不用 + //base.Init(dbRepository); + } + } +} diff --git a/api_sqlsugar/Warehouse/Services/device_manager/Partial/video_recordService.cs b/api_sqlsugar/Warehouse/Services/device_manager/Partial/video_recordService.cs new file mode 100644 index 0000000..2e32ad3 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/Partial/video_recordService.cs @@ -0,0 +1,41 @@ +/* + *所有关于video_record类的业务代码应在此处编写 +*可使用repository.调用常用方法,获取EF/Dapper等信息 +*如果需要事务请使用repository.DbContextBeginTransaction +*也可使用DBServerProvider.手动获取数据库相关信息 +*用户信息、权限、角色等使用UserContext.Current操作 +*video_recordService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter +*/ +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; +using System.Linq; +using VolPro.Core.Utilities; +using System.Linq.Expressions; +using VolPro.Core.Extensions; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.AspNetCore.Http; +using Warehouse.IRepositories; + +namespace Warehouse.Services +{ + public partial class video_recordService + { + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly Ivideo_recordRepository _repository;//访问数据库 + + [ActivatorUtilitiesConstructor] + public video_recordService( + Ivideo_recordRepository dbRepository, + IHttpContextAccessor httpContextAccessor + ) + : base(dbRepository) + { + _httpContextAccessor = httpContextAccessor; + _repository = dbRepository; + //多租户会用到这init代码,其他情况可以不用 + //base.Init(dbRepository); + } + } +} diff --git a/api_sqlsugar/Warehouse/Services/device_manager/base_deviceService.cs b/api_sqlsugar/Warehouse/Services/device_manager/base_deviceService.cs new file mode 100644 index 0000000..f818e04 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/base_deviceService.cs @@ -0,0 +1,22 @@ +/* + *Author:jxx + *Contact:283591387@qq.com + *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖 + *所有业务编写全部应在Partial文件夹下base_deviceService与Ibase_deviceService中编写 + */ +using Warehouse.IRepositories; +using Warehouse.IServices; +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Services +{ + public partial class base_deviceService : ServiceBase + , Ibase_deviceService, IDependency + { + public static Ibase_deviceService Instance + { + get { return AutofacContainerModule.GetService(); } } + } + } diff --git a/api_sqlsugar/Warehouse/Services/device_manager/gateway_nodesService.cs b/api_sqlsugar/Warehouse/Services/device_manager/gateway_nodesService.cs new file mode 100644 index 0000000..1bf60a2 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/gateway_nodesService.cs @@ -0,0 +1,22 @@ +/* + *Author:jxx + *Contact:283591387@qq.com + *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖 + *所有业务编写全部应在Partial文件夹下gateway_nodesService与Igateway_nodesService中编写 + */ +using Warehouse.IRepositories; +using Warehouse.IServices; +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Services +{ + public partial class gateway_nodesService : ServiceBase + , Igateway_nodesService, IDependency + { + public static Igateway_nodesService Instance + { + get { return AutofacContainerModule.GetService(); } } + } + } diff --git a/api_sqlsugar/Warehouse/Services/device_manager/iot_alarmService.cs b/api_sqlsugar/Warehouse/Services/device_manager/iot_alarmService.cs new file mode 100644 index 0000000..1ef4c40 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/iot_alarmService.cs @@ -0,0 +1,22 @@ +/* + *Author:jxx + *Contact:283591387@qq.com + *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖 + *所有业务编写全部应在Partial文件夹下iot_alarmService与Iiot_alarmService中编写 + */ +using Warehouse.IRepositories; +using Warehouse.IServices; +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Services +{ + public partial class iot_alarmService : ServiceBase + , Iiot_alarmService, IDependency + { + public static Iiot_alarmService Instance + { + get { return AutofacContainerModule.GetService(); } } + } + } diff --git a/api_sqlsugar/Warehouse/Services/device_manager/iot_devicedataService.cs b/api_sqlsugar/Warehouse/Services/device_manager/iot_devicedataService.cs new file mode 100644 index 0000000..33ccfd7 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/iot_devicedataService.cs @@ -0,0 +1,22 @@ +/* + *Author:jxx + *Contact:283591387@qq.com + *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖 + *所有业务编写全部应在Partial文件夹下iot_devicedataService与Iiot_devicedataService中编写 + */ +using Warehouse.IRepositories; +using Warehouse.IServices; +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Services +{ + public partial class iot_devicedataService : ServiceBase + , Iiot_devicedataService, IDependency + { + public static Iiot_devicedataService Instance + { + get { return AutofacContainerModule.GetService(); } } + } + } diff --git a/api_sqlsugar/Warehouse/Services/device_manager/video_channelService.cs b/api_sqlsugar/Warehouse/Services/device_manager/video_channelService.cs new file mode 100644 index 0000000..c74ea06 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/video_channelService.cs @@ -0,0 +1,22 @@ +/* + *Author:jxx + *Contact:283591387@qq.com + *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖 + *所有业务编写全部应在Partial文件夹下video_channelService与Ivideo_channelService中编写 + */ +using Warehouse.IRepositories; +using Warehouse.IServices; +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Services +{ + public partial class video_channelService : ServiceBase + , Ivideo_channelService, IDependency + { + public static Ivideo_channelService Instance + { + get { return AutofacContainerModule.GetService(); } } + } + } diff --git a/api_sqlsugar/Warehouse/Services/device_manager/video_recordService.cs b/api_sqlsugar/Warehouse/Services/device_manager/video_recordService.cs new file mode 100644 index 0000000..2b0f769 --- /dev/null +++ b/api_sqlsugar/Warehouse/Services/device_manager/video_recordService.cs @@ -0,0 +1,22 @@ +/* + *Author:jxx + *Contact:283591387@qq.com + *代码由框架生成,此处任何更改都可能导致被代码生成器覆盖 + *所有业务编写全部应在Partial文件夹下video_recordService与Ivideo_recordService中编写 + */ +using Warehouse.IRepositories; +using Warehouse.IServices; +using VolPro.Core.BaseProvider; +using VolPro.Core.Extensions.AutofacManager; +using VolPro.Entity.DomainModels; + +namespace Warehouse.Services +{ + public partial class video_recordService : ServiceBase + , Ivideo_recordService, IDependency + { + public static Ivideo_recordService Instance + { + get { return AutofacContainerModule.GetService(); } } + } + }