using F9WebAiTest.Domain.Entities.SYS.Registries; namespace F9WebAiTest.Domain.Interfaces.SYS.Registries; /// 注册表写仓储(聚合根仓储) public interface IRegistryWriteRepository : IDInterface { /// 返回聚合根 Task GetByIdAsync(long id, CancellationToken cancellationToken); /// 按命名空间 + 键名查询(存在则可用于"存在即更新") Task GetByCategoryAndKeyAsync(string category, string keyName); Task AddAsync(Registry registry); Task UpdateAsync(Registry registry); Task SoftDeleteAsync(long id); }