using FoodLabeling.Application.Contracts.Dtos.Common; using FoodLabeling.Application.Contracts.Dtos.Label; using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; namespace FoodLabeling.Application.Contracts.IServices; /// /// 标签管理接口(美国版) /// public interface ILabelAppService : IApplicationService { /// /// 按产品分页列表(一个产品展示多个标签)。支持 GroupId / LocationId 筛选(命中 fl_label_regionfl_label_locationAppliedRegionType=ALL);labelTypeId 为可选筛选;出参含 locationIdsregionregionIdsappliedRegionType。 /// Task> GetListAsync(LabelGetListInputVo input); /// /// 标签详情(id=LabelCode)。出参含 locationIdslocationappliedRegionTyperegionregionIdsgroupIdslocationIdlocationIds 首项兼容字段。 /// Task GetAsync(string id); /// /// 新增标签。Body 支持 appliedRegionType(ALL/SPECIFIED)、 /// regionIds / groupIds / locationIds(可含哨兵 ALL,归档为 AppliedRegionType=ALL)。 /// Task CreateAsync(LabelCreateInputVo input); /// /// 批量导入标签(同一模板多行)。每行含标签基本字段与模板数据字段;可选合并写入模板 ProductDefaults。 /// Task BatchCreateAsync(LabelBatchCreateInputVo input); /// /// 编辑标签(id=LabelCode)。范围传参与 一致,支持 Id 数组传 ALL。 /// Task UpdateAsync(string id, LabelUpdateInputVo input); /// /// 删除标签(逻辑删除) /// Task DeleteAsync(string id); /// /// 标签预览:解析模板 AUTO_DB/PRINT_INPUT(不做打印落库) /// Task PreviewAsync(LabelPreviewResolveInputVo input); }