class AppServiceImpl implements AppService, ApplicationListener<ConfigChangedEvent> {

    @Override
    public void deleteById(int id, String operator) {
        configService.deleteByAppId(id, operator);

        userAppRepository.deleteByAppId(id);
        appRepository.deleteById(id);
    }

}