wanshenmean
2026-03-24 ab2076893b8df3c14f1a126d47e9eee132a38f4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}