namespace FoodLabeling.Application.Contracts.Dtos.LabelTemplate;
using System.Text.Json.Serialization;
public class LabelTemplateGetOutputDto
{
public string Id { get; set; } = string.Empty;
public string TemplateCode { get; set; } = string.Empty;
public string TemplateName { get; set; } = string.Empty;
public string? LabelType { get; set; }
public string Unit { get; set; } = string.Empty;
public decimal Width { get; set; }
public decimal Height { get; set; }
public string AppliedLocationType { get; set; } = "ALL";
/// 适用 Company:ALL / SPECIFIED
public string AppliedPartnerType { get; set; } = "ALL";
/// 适用 Region:ALL / SPECIFIED
public string AppliedRegionType { get; set; } = "ALL";
public bool ShowRuler { get; set; }
public bool ShowGrid { get; set; }
/// 整标签外框:none / line / dotted(JSON 字段 border)
[JsonPropertyName("border")]
public string BorderType { get; set; } = "none";
/// 打印方向:vertical / horizontal
[JsonPropertyName("printOrientation")]
public string PrintOrientationType { get; set; } = "vertical";
public int VersionNo { get; set; }
public bool State { get; set; }
public List Elements { get; set; } = new();
public List AppliedLocationIds { get; set; } = new();
/// 适用 Region 展示(ALL 时为 All Regions;SPECIFIED 时为绑定门店去重后的 Region 名称)
public string Region { get; set; } = string.Empty;
/// 适用门店展示(ALL 时为 All Locations;SPECIFIED 时为门店名称拼接)
public string Location { get; set; } = string.Empty;
/// 适用 Region Id 列表(多选;ALL 时为空数组)
public List RegionIds { get; set; } = new();
/// 与 相同(兼容字段)
public List GroupIds { get; set; } = new();
/// 适用门店 Id 列表(多选;ALL 时为空数组)
public List LocationIds { get; set; } = new();
public List TemplateProductDefaults { get; set; } = new();
/// 适用 Company 展示(ALL 时为 All Companies)
public string Company { get; set; } = string.Empty;
/// 适用 Company Id 列表(fl_partner.Id;ALL 时为空数组)
public List PartnerIds { get; set; } = new();
/// 与 相同(兼容字段)
public List CompanyIds { get; set; } = new();
}