ILabelTemplateAppService.cs 1.19 KB
using FoodLabeling.Application.Contracts.Dtos.Common;
using FoodLabeling.Application.Contracts.Dtos.LabelTemplate;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace FoodLabeling.Application.Contracts.IServices;

/// <summary>
/// 标签模板管理接口(美国版对外)
/// </summary>
public interface ILabelTemplateAppService : IApplicationService
{
    /// <summary>
    /// 标签模板分页列表
    /// </summary>
    Task<PagedResultWithPageDto<LabelTemplateGetListOutputDto>> GetListAsync(LabelTemplateGetListInputVo input);

    /// <summary>
    /// 标签模板详情(含 elements 与适用门店)
    /// </summary>
    Task<LabelTemplateGetOutputDto> GetAsync(string id);

    /// <summary>
    /// 新增标签模板
    /// </summary>
    Task<LabelTemplateGetOutputDto> CreateAsync(LabelTemplateCreateInputVo input);

    /// <summary>
    /// 编辑标签模板(版本号 +1,重建 elements)
    /// </summary>
    Task<LabelTemplateGetOutputDto> UpdateAsync(string id, LabelTemplateUpdateInputVo input);

    /// <summary>
    /// 删除标签模板(逻辑删除;若已被标签引用则禁止)
    /// </summary>
    Task DeleteAsync(string id);
}