@Override
    @Transactional(rollbackFor = Exception.class)
    public int delete(final List<String> ids) {
        if (CollectionUtils.isEmpty(ids)) {
            return 0;
        }
        List<AppAuthDO> appAuthList = appAuthMapper.selectByIds(ids);
        if (CollectionUtils.isEmpty(appAuthList)) {
            return 0;
        }
        int affectCount = appAuthMapper.deleteByIds(ids);
        if (affectCount <= 0) {
            return affectCount;
        }
        authParamMapper.deleteByAuthIds(ids);
        authPathMapper.deleteByAuthIds(ids);

        List<AppAuthData> appAuthData = appAuthList.stream().map(appAuthDO -> AppAuthData.builder()
                .appKey(appAuthDO.getAppKey())
                .appSecret(appAuthDO.getAppSecret())
                .open(appAuthDO.getOpen())
                .enabled(appAuthDO.getEnabled())
                .paramDataList(null)
                .pathDataList(null)
                .build()).collect(Collectors.toCollection(() -> new ArrayList<>(appAuthList.size())));
        // publish delete event of AppAuthData
        eventPublisher.publishEvent(new DataChangedEvent(ConfigGroupEnum.APP_AUTH, DataEventTypeEnum.DELETE, appAuthData));

        return affectCount;
    }
create or update application authority.

@param appAuthDTO {@linkplain AppAuthDTO}
@return rows
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/AppAuthServiceImpl.java