LabelCreateInputVo.cs 1.6 KB
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;

    /// <summary>
    /// 适用 Company(<c>fl_partner.Id</c>);与 <see cref="PartnerIds"/> 合并,用于解析所属门店
    /// </summary>
    public string? PartnerId { get; set; }

    /// <summary>
    /// 适用 Company 多选(<c>fl_partner.Id</c>)
    /// </summary>
    public List<string>? PartnerIds { get; set; }

    /// <summary>
    /// 适用 Region 多选(<c>fl_group.Id</c>);与 <see cref="GroupIds"/> 合并
    /// </summary>
    public List<string>? RegionIds { get; set; }

    /// <summary>
    /// 适用 Region 多选(与 <see cref="RegionIds"/> 相同)
    /// </summary>
    public List<string>? GroupIds { get; set; }

    /// <summary>
    /// 所属门店(<c>location.Id</c>);可与 Company/Region 一并传入以校验范围;单独传则直接落库
    /// </summary>
    public string? LocationId { get; set; }

    /// <summary>
    /// 门店候选(多选);标签仅绑定单门店:未传 <see cref="LocationId"/> 且合并结果唯一时自动取该项
    /// </summary>
    public List<string>? LocationIds { get; set; }

    public string LabelCategoryId { get; set; } = string.Empty;

    public string LabelTypeId { get; set; } = string.Empty;

    public List<string> ProductIds { get; set; } = new();

    public object? LabelInfoJson { get; set; }

    public bool State { get; set; } = true;
}