namespace FoodLabeling.Application.Contracts.Dtos.Label;
public class LabelCreateInputVo
{
/// 标签编码(可选;未传或空字符串时由后端自动生成唯一编码)
public string? LabelCode { get; set; }
public string LabelName { get; set; } = string.Empty;
public string TemplateCode { get; set; } = string.Empty;
///
/// 适用 Company(fl_partner.Id);与 / 合并,单选
///
public string? PartnerId { get; set; }
///
/// 适用 Company 多选字段(仅支持 1 个;与 相同)
///
public List? PartnerIds { get; set; }
///
/// 适用 Company(单选,fl_partner.Id);与 / 合并
///
public List? CompanyIds { get; set; }
///
/// 适用 Region 范围:ALL / SPECIFIED。
/// 亦可在 / 传哨兵 ["ALL"](即使本字段为 SPECIFIED 亦归档 ALL;POST/PUT 均支持)。
///
public string? AppliedRegionType { get; set; }
///
/// 适用 Region 多选(fl_group.Id);与 合并;可含 ALL
///
public List? RegionIds { get; set; }
///
/// 适用 Region 多选(与 相同);可含 ALL
///
public List? GroupIds { get; set; }
///
/// 适用门店 Id 数组(location.Id);可含 ALL;落库 fl_label_location
///
public List? LocationIds { get; set; }
///
/// 兼容旧入参:单门店 Id;与 合并,首项写入 fl_label.LocationId
///
public string? LocationId { get; set; }
public string LabelCategoryId { get; set; } = string.Empty;
/// 标签类型 Id(fl_label_type.Id);可选,未传时标签不绑定类型
public string? LabelTypeId { get; set; }
public List ProductIds { get; set; } = new();
public object? LabelInfoJson { get; set; }
public bool State { get; set; } = true;
}