add chat and users

This commit is contained in:
2026-09-10 19:09:36 +03:30
parent 91ad61bdee
commit 8eb465c0e7
40 changed files with 4888 additions and 148 deletions

View File

@@ -0,0 +1,9 @@
namespace GreenHome.Application;
public interface IDeviceMemberService
{
Task<IReadOnlyList<DeviceMemberDto>> ListByDeviceAsync(int deviceId, CancellationToken cancellationToken);
Task<DeviceMemberDto> UpsertAsync(UpsertDeviceMemberRequest request, CancellationToken cancellationToken);
Task DeleteAsync(int deviceId, int userId, CancellationToken cancellationToken);
Task<bool> CanManageDeviceAsync(int actorUserId, int deviceId, CancellationToken cancellationToken);
}

View File

@@ -10,4 +10,6 @@ public interface IDevicePostService
Task<int> AddImageToPostAsync(int postId, string fileName, string filePath, string contentType, long fileSize, CancellationToken cancellationToken);
Task DeleteImageAsync(int imageId, CancellationToken cancellationToken);
Task<bool> CanUserAccessDeviceAsync(int userId, int deviceId, CancellationToken cancellationToken);
Task<int> CreateSensorSnapshotAsync(CreateSensorSnapshotRequest request, CancellationToken cancellationToken);
Task SetPostVoiceAsync(int postId, string fileName, string filePath, string contentType, long fileSize, int? durationSeconds, CancellationToken cancellationToken);
}