erp-platform/api/src/Erp.Platform.Domain/Queries/ChartLabel.cs

27 lines
788 B
C#
Raw Normal View History

2025-11-11 19:49:52 +00:00
using System.Collections.Generic;
using System.Text.Json.Serialization;
2025-09-26 20:34:03 +00:00
using Volo.Abp.Domain.Values;
2025-11-11 19:49:52 +00:00
namespace Erp.Platform.Queries;
2025-09-26 20:34:03 +00:00
public class ChartLabel : ValueObject
{
[JsonInclude] public string BackgroundColor { get; private set; } = "#f05b41";
[JsonInclude] public string CustomizeText { get; private set; }
[JsonInclude] public ChartFont Font { get; private set; } = new();
[JsonInclude] public bool Visible { get; private set; }
[JsonInclude] public string Format { get; private set; }
2025-09-26 20:34:03 +00:00
public ChartLabel() { }
2025-09-26 23:40:39 +00:00
2025-09-26 20:34:03 +00:00
protected override IEnumerable<object> GetAtomicValues()
{
yield return BackgroundColor;
yield return CustomizeText;
yield return Font;
yield return Visible;
yield return Format;
}
}
2025-11-11 19:49:52 +00:00