class AppGroupController {

    @RequestMapping(value = "/delete", method = RequestMethod.DELETE)
    public ServiceResult<String> delete(@Validated(DeleteAppGroup.class) @RequestBody AppGroup appGroup, @CurrentUser LoginUser user, Errors errors) throws Exception {
        ValidateResult validateRes = appGroupService.validatePermision(user, errors)
                .addAssert(() -> appGroupService.deleteCheck(appGroup.getId()))
               /*TODO .addAssert(() -> apolloAppGroup.delete(user, appGroup.getId()))*/
                .addAssert(() -> appGroupService.deleteAppGroup(appGroup))
                .validate();
        if (!validateRes.isValid()) {
            return ServiceResult.fail(validateRes.getSummarize());
        }
        return ServiceResult.success();
    }

}