using WIDESEAWCS_S7Simulator.Core.Protocol;
|
|
namespace WIDESEAWCS_S7Simulator.Application.Protocol;
|
|
/// <summary>
|
/// 协议模板存取接口。
|
/// 放在 Application 层,供控制器与后台监控统一依赖。
|
/// </summary>
|
public interface IProtocolTemplateService
|
{
|
Task<IReadOnlyList<ProtocolTemplate>> GetAllAsync();
|
Task<ProtocolTemplate?> GetByIdAsync(string id);
|
Task<ProtocolTemplate> UpsertAsync(ProtocolTemplate template);
|
Task<bool> DeleteAsync(string id);
|
Task<bool> ExistsAsync(string id);
|
}
|