17 lines
910 B
C#
17 lines
910 B
C#
using Heimdall.Application.Common;
|
|
using Heimdall.Application.DTOs;
|
|
|
|
namespace Heimdall.Application.Services;
|
|
|
|
public interface IGroupService
|
|
{
|
|
Task<ServiceResult<PagedResult<GroupResponse>>> ListAsync(int page, int pageSize, CancellationToken ct);
|
|
Task<ServiceResult<GroupResponse>> GetByIdAsync(Guid id, CancellationToken ct);
|
|
Task<ServiceResult<GroupResponse>> CreateAsync(CreateGroupRequest request, CancellationToken ct);
|
|
Task<ServiceResult<GroupResponse>> UpdateAsync(Guid id, UpdateGroupRequest request, CancellationToken ct);
|
|
Task<ServiceResult> DeleteAsync(Guid id, CancellationToken ct);
|
|
Task<ServiceResult> AddUserAsync(Guid groupId, Guid userId, CancellationToken ct);
|
|
Task<ServiceResult> RemoveUserAsync(Guid groupId, Guid userId, CancellationToken ct);
|
|
Task<ServiceResult<IReadOnlyList<GroupMemberResponse>>> GetMembersAsync(Guid groupId, CancellationToken ct);
|
|
}
|