LabelPreviewResolveInputVo.cs
906 Bytes
using System.Collections.Generic;
namespace FoodLabeling.Application.Contracts.Dtos.Label;
public class LabelPreviewResolveInputVo
{
/// <summary>
/// 标签编码(fl_label.LabelCode)
/// </summary>
public string LabelCode { get; set; } = string.Empty;
/// <summary>
/// 选择用于预览的产品Id(fl_product.Id)
/// 如果不传,默认取该标签绑定的第一个产品
/// </summary>
public string? ProductId { get; set; }
/// <summary>
/// 业务基准时间(用于 DATE/TIME 元素的渲染计算)
/// 不传则默认使用服务器当前时间
/// </summary>
public DateTime? BaseTime { get; set; }
/// <summary>
/// 打印输入(前端传,用于 PRINT_INPUT 元素)
/// key 建议使用模板元素的 InputKey
/// </summary>
public Dictionary<string, object?>? PrintInputJson { get; set; }
}