架构增加文件存储服务的支持
This commit is contained in:
18
SHH.CameraSdk/Abstractions/IStorageService.cs
Normal file
18
SHH.CameraSdk/Abstractions/IStorageService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace SHH.CameraSdk;
|
||||
|
||||
public interface IStorageService
|
||||
{
|
||||
// 1. 基础属性:让外界知道当前是几号进程
|
||||
int ProcessId { get; }
|
||||
|
||||
// 2. 设备配置相关的空架子
|
||||
Task SaveDevicesAsync(object configs); // 这里先用 object 占位,或者用您的 List<VideoSourceConfig>
|
||||
|
||||
Task<object> LoadDevicesAsync();
|
||||
|
||||
// 3. 系统日志相关的空架子
|
||||
Task AppendSystemLogAsync(string action, string ip, string path);
|
||||
|
||||
// 4. 设备审计日志相关的空架子
|
||||
Task AppendDeviceLogAsync(long deviceId, string message);
|
||||
}
|
||||
Reference in New Issue
Block a user