using System.Collections.Generic;
using System.Text.Json.Serialization;
using FoodLabeling.Application.Contracts.Dtos.LabelTemplate;
namespace FoodLabeling.Application.Contracts.Dtos.Label;
///
/// Preview payload aligned with frontend LabelCanvas / LabelPreviewOnly template shape.
///
public class LabelTemplatePreviewDto
{
[JsonPropertyName("id")]
public string Id { get; set; } = string.Empty;
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("labelType")]
public string LabelType { get; set; } = string.Empty;
[JsonPropertyName("unit")]
public string Unit { get; set; } = string.Empty;
[JsonPropertyName("width")]
public decimal Width { get; set; }
[JsonPropertyName("height")]
public decimal Height { get; set; }
/// 打印方向:vertical / horizontal
[JsonPropertyName("printOrientation")]
public string PrintOrientation { get; set; } = "vertical";
[JsonPropertyName("appliedLocation")]
public string AppliedLocation { get; set; } = "ALL";
[JsonPropertyName("showRuler")]
public bool ShowRuler { get; set; }
[JsonPropertyName("showGrid")]
public bool ShowGrid { get; set; }
/// Label outer border: none / line / dotted
[JsonPropertyName("border")]
public string Border { get; set; } = "none";
[JsonPropertyName("elements")]
public List Elements { get; set; } = new();
}