Files
DMS/DMS.Infrastructure/Interfaces/IMqttRepository.cs

20 lines
557 B
C#
Raw Normal View History

2025-07-19 09:25:01 +08:00
using DMS.Core.Models;
2025-07-19 22:29:50 +08:00
using DMS.Infrastructure.Entities;
2025-07-19 09:25:01 +08:00
using System.Collections.Generic;
using System.Threading.Tasks;
2025-07-19 11:11:01 +08:00
namespace DMS.Infrastructure.Interfaces
2025-07-19 09:25:01 +08:00
{
public interface IMqttRepository
{
Task<DbMqttServer> GetByIdAsync(int id);
Task<List<DbMqttServer>> GetAllAsync();
Task<int> AddAsync(DbMqttServer mqtt);
Task<int> UpdateAsync(DbMqttServer mqtt);
Task<int> DeleteAsync(DbMqttServer mqtt);
2025-07-19 22:29:50 +08:00
Task BeginTranAsync();
Task CommitTranAsync();
Task RollbackTranAsync();
2025-07-19 09:25:01 +08:00
}
2025-07-19 09:25:01 +08:00
}