FlowAPI / FlowAPI.Application /Interfaces /IGraphService.cs
danylokhodus's picture
init
b9c7f0e
Raw History Blame
981 Bytes
using FlowAPI.Application.DTOs.Graph;
namespace FlowAPI.Application.Interfaces
{
public interface IGraphService
{
Task<IEnumerable<GraphResponseDto>> GetAllByUserIdAsync(Guid userId);
Task<GraphResponseDto?> GetByIdAsync(Guid id, Guid currentUserId);
Task<FullGraphResponseDto?> GetFullByIdAsync(Guid id, Guid currentUserId);
Task<GraphResponseDto> CreateAsync(CreateGraphDto dto, Guid currentUserId);
Task<GraphResponseDto?> UpdateAsync(Guid id, UpdateGraphDto dto, Guid currentUserId);
Task<bool> DeleteAsync(Guid id, Guid currentUserId);
Task<bool> SaveFullGraphAsync(Guid id, FullGraphResponseDto dto, Guid currentUserId);
Task<GraphResponseDto?> ShareGraphAsync(Guid graphId, Guid ownerId, ShareGraphRequestDto dto);
Task<IEnumerable<SharedUserResponseDto>> GetSharedUsersAsync(Guid graphId, Guid ownerId);
Task<bool> RevokeShareAsync(Guid graphId, Guid ownerId, Guid shareId);
}
}