Add method to add users to groups

This commit is contained in:
Valentin Tolmer
2021-05-26 15:49:59 +02:00
parent b3c2f5edfc
commit 352a7d90fc
4 changed files with 42 additions and 17 deletions

View File

@@ -29,6 +29,7 @@ mockall::mock! {
async fn get_user_groups(&self, user: String) -> DomainResult<HashSet<String>>;
async fn create_user(&self, request: CreateUserRequest) -> DomainResult<()>;
async fn create_group(&self, request: CreateGroupRequest) -> DomainResult<i32>;
async fn add_user_to_group(&self, request: AddUserToGroupRequest) -> DomainResult<()>;
}
#[async_trait]
impl TcpBackendHandler for TestTcpBackendHandler {