59e51671
“wangming”
1
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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;
/// <summary>
/// 标签管理接口(美国版)
/// </summary>
public interface ILabelAppService : IApplicationService
{
/// <summary>
|
2893c050
李曜臣
2026-07-13
|
14
|
/// 按产品分页列表(一个产品展示多个标签)。支持 <c>GroupId</c> / <c>LocationId</c> 筛选(命中 <c>fl_label_region</c>、<c>fl_label_location</c> 或 <c>AppliedRegionType=ALL</c>);<c>labelTypeId</c> 为可选筛选;出参含 <c>locationIds</c>、<c>region</c>、<c>regionIds</c>、<c>appliedRegionType</c>。
|
59e51671
“wangming”
1
|
15
16
17
18
|
/// </summary>
Task<PagedResultWithPageDto<LabelGetListOutputDto>> GetListAsync(LabelGetListInputVo input);
/// <summary>
|
2893c050
李曜臣
2026-07-13
|
19
|
/// 标签详情(id=LabelCode)。出参含 <c>locationIds</c>、<c>location</c>、<c>appliedRegionType</c>、<c>region</c>、<c>regionIds</c>、<c>groupIds</c>;<c>locationId</c> 为 <c>locationIds</c> 首项兼容字段。
|
59e51671
“wangming”
1
|
20
21
22
23
|
/// </summary>
Task<LabelGetOutputDto> GetAsync(string id);
/// <summary>
|
30543ac5
李曜臣
泰鄂版同步代码
|
24
25
|
/// 新增标签。Body 支持 <c>appliedRegionType</c>(ALL/SPECIFIED)、
/// <c>regionIds</c> / <c>groupIds</c> / <c>locationIds</c>(可含哨兵 <c>ALL</c>,归档为 AppliedRegionType=ALL)。
|
59e51671
“wangming”
1
|
26
27
28
29
|
/// </summary>
Task<LabelGetOutputDto> CreateAsync(LabelCreateInputVo input);
/// <summary>
|
2893c050
李曜臣
2026-07-13
|
30
31
32
33
34
|
/// 批量导入标签(同一模板多行)。每行含标签基本字段与模板数据字段;可选合并写入模板 ProductDefaults。
/// </summary>
Task<LabelBatchCreateResultDto> BatchCreateAsync(LabelBatchCreateInputVo input);
/// <summary>
|
30543ac5
李曜臣
泰鄂版同步代码
|
35
|
/// 编辑标签(id=LabelCode)。范围传参与 <see cref="CreateAsync"/> 一致,支持 Id 数组传 <c>ALL</c>。
|
59e51671
“wangming”
1
|
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/// </summary>
Task<LabelGetOutputDto> UpdateAsync(string id, LabelUpdateInputVo input);
/// <summary>
/// 删除标签(逻辑删除)
/// </summary>
Task DeleteAsync(string id);
/// <summary>
/// 标签预览:解析模板 AUTO_DB/PRINT_INPUT(不做打印落库)
/// </summary>
Task<LabelTemplatePreviewDto> PreviewAsync(LabelPreviewResolveInputVo input);
}
|