namespace FoodLabeling.Application.Contracts.Dtos.Label;
///
/// 批量导入单行:标签基本字段 + 模板数据字段
///
public class LabelBatchCreateItemInputVo
{
public string? LabelCode { get; set; }
public string LabelName { get; set; } = string.Empty;
public string? PartnerId { get; set; }
public List? PartnerIds { get; set; }
/// 适用 Company(单选)
public List? CompanyIds { get; set; }
public string? AppliedRegionType { get; set; }
public List? RegionIds { get; set; }
public List? GroupIds { get; set; }
public List? LocationIds { get; set; }
public string? LocationId { get; set; }
public string LabelCategoryId { get; set; } = string.Empty;
public string? LabelTypeId { get; set; }
public List ProductIds { get; set; } = new();
/// 标签级模板数据(落库 fl_label.LabelInfoJson);通常批量导入走模板 ProductDefaults
public object? LabelInfoJson { get; set; }
public bool State { get; set; } = true;
///
/// 已组装的模板默认值(elementId → 值)。若传入则优先使用,不再从下方结构化字段推导。
///
public Dictionary? TemplateDefaultValues { get; set; }
/// 模板文本类录入(elementId → 文本)
public Dictionary? TemplateDataValues { get; set; }
/// 模板日期/时间/时长录入(elementId → 单位+数值)
public Dictionary? TemplateDateOffsets { get; set; }
/// 营养成分手动录入(nutritionElementId → 子字段键值)
public Dictionary>? NutritionByElementId { get; set; }
}