Пример #1
0
def update_user_group(user_group_service: UserGroupService,
                      user_group: UserGroup) -> None:
    user_group_service.update(user_group)
Пример #2
0
def get_user_group_service(user_service: UserService) -> UserGroupService:
    return UserGroupService(user_service.storage,
                            user_service.snowflakeGenerator,
                            user_service.principalService)
def get_user_group_service(
        principal_service: PrincipalService) -> UserGroupService:
    return UserGroupService(ask_meta_storage(), ask_snowflake_generator(),
                            principal_service)
Пример #4
0
def get_user_group_service(space_service: SpaceService) -> UserGroupService:
	return UserGroupService(space_service.storage, space_service.snowflakeGenerator, space_service.principalService)
Пример #5
0
def get_user_group_service(indicator_service: IndicatorService) -> UserGroupService:
	return UserGroupService(
		indicator_service.storage, indicator_service.snowflakeGenerator, indicator_service.principalService)