8 changed files with 33 additions and 27 deletions
@ -1,6 +0,0 @@
@@ -1,6 +0,0 @@
|
||||
namespace Api.AdminConsole.Queries; |
||||
|
||||
public interface IGroupDetailsQuery |
||||
{ |
||||
Task<IEnumerable<GroupDetailsQueryResponse>> GetGroupDetails(GroupDetailsQueryRequest request); |
||||
} |
||||
@ -1,22 +1,11 @@
@@ -1,22 +1,11 @@
|
||||
using Bit.Core.AdminConsole.Entities; |
||||
using Bit.Core.AdminConsole.OrganizationFeatures.Groups.Interfaces; |
||||
using Bit.Core.AdminConsole.OrganizationFeatures.Groups.Requests; |
||||
using Bit.Core.AdminConsole.OrganizationFeatures.Groups.Responses; |
||||
using Bit.Core.AdminConsole.Repositories; |
||||
using Bit.Core.Context; |
||||
using Bit.Core.Exceptions; |
||||
using Bit.Core.Models.Data; |
||||
|
||||
namespace Api.AdminConsole.Queries; |
||||
|
||||
public class GroupDetailsQueryRequest |
||||
{ |
||||
public Guid OrganizationId { get; set; } |
||||
public Guid? GroupId { get; set; } |
||||
} |
||||
|
||||
public class GroupDetailsQueryResponse |
||||
{ |
||||
public Group Group { get; set; } |
||||
public IEnumerable<CollectionAccessSelection> CollectionAccessSelection { get; set; } |
||||
} |
||||
namespace Bit.Core.AdminConsole.OrganizationFeatures.Groups; |
||||
|
||||
public class GroupDetailsQuery : IGroupDetailsQuery |
||||
{ |
||||
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
using Bit.Core.AdminConsole.OrganizationFeatures.Groups.Requests; |
||||
using Bit.Core.AdminConsole.OrganizationFeatures.Groups.Responses; |
||||
|
||||
namespace Bit.Core.AdminConsole.OrganizationFeatures.Groups.Interfaces; |
||||
|
||||
public interface IGroupDetailsQuery |
||||
{ |
||||
Task<IEnumerable<GroupDetailsQueryResponse>> GetGroupDetails(GroupDetailsQueryRequest request); |
||||
} |
||||
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
namespace Bit.Core.AdminConsole.OrganizationFeatures.Groups.Requests; |
||||
|
||||
public class GroupDetailsQueryRequest |
||||
{ |
||||
public Guid OrganizationId { get; set; } |
||||
public Guid? GroupId { get; set; } |
||||
} |
||||
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
using Bit.Core.AdminConsole.Entities; |
||||
using Bit.Core.Models.Data; |
||||
|
||||
namespace Bit.Core.AdminConsole.OrganizationFeatures.Groups.Responses; |
||||
|
||||
public class GroupDetailsQueryResponse |
||||
{ |
||||
public Group Group { get; set; } |
||||
public IEnumerable<CollectionAccessSelection> CollectionAccessSelection { get; set; } |
||||
} |
||||
Loading…
Reference in new issue