Files
f9-web-ai-test/backend/F9WebAiTest.Domain/Interfaces/SYS/Registries/IRegistryWriteRepository.cs
T
2026-10-08 15:44:07 +08:00

18 lines
664 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using F9WebAiTest.Domain.Entities.SYS.Registries;
namespace F9WebAiTest.Domain.Interfaces.SYS.Registries;
/// <summary>注册表写仓储(聚合根仓储)</summary>
public interface IRegistryWriteRepository : IDInterface
{
/// <summary>返回聚合根</summary>
Task<Registry> GetByIdAsync(long id, CancellationToken cancellationToken);
/// <summary>按命名空间 + 键名查询(存在则可用于"存在即更新")</summary>
Task<Registry> GetByCategoryAndKeyAsync(string category, string keyName);
Task<bool> AddAsync(Registry registry);
Task<bool> UpdateAsync(Registry registry);
Task<bool> SoftDeleteAsync(long id);
}