using Admin.NET.Core; namespace Admin.NET.Plugin.AiDOP.Entity; /// /// 智慧运营详情看板组件配置。 /// [SugarTable("ado_smart_ops_dashboard_widget", "智慧运营详情看板组件配置")] public class AdoSmartOpsDashboardWidget : ITenantIdFilter { [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true)] public long Id { get; set; } [SugarColumn(ColumnDescription = "租户")] public long? TenantId { get; set; } [SugarColumn(ColumnDescription = "工厂")] public long FactoryId { get; set; } [SugarColumn(ColumnDescription = "模块", Length = 8)] public string ModuleCode { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "区域编码", Length = 64)] public string SectionCode { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "所属 Tab 指标编码", Length = 64, IsNullable = true)] public string? TabMetricCode { get; set; } [SugarColumn(ColumnDescription = "组件编码", Length = 96)] public string WidgetCode { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "组件类型", Length = 48)] public string WidgetType { get; set; } = "metric_card"; [SugarColumn(ColumnDescription = "标题", Length = 200, IsNullable = true)] public string? Title { get; set; } [SugarColumn(ColumnDescription = "指标层级")] public int MetricLevel { get; set; } [SugarColumn(ColumnDescription = "指标编码 JSON", ColumnDataType = "text", IsNullable = true)] public string? MetricCodesJson { get; set; } [SugarColumn(ColumnDescription = "栅格宽度")] public int Span { get; set; } = 6; [SugarColumn(ColumnDescription = "排序")] public int SortNo { get; set; } [SugarColumn(ColumnDescription = "样式参数 JSON", ColumnDataType = "text", IsNullable = true)] public string? StyleJson { get; set; } [SugarColumn(ColumnDescription = "启用 0/1")] public int IsEnabled { get; set; } = 1; [SugarColumn(ColumnDescription = "更新时间")] public DateTime UpdateTime { get; set; } }