完善基础数据
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user