class AdminAuthGroupService {

    @Transactional
    public Result delete(AdminAuthGroup group) {
        //  删除用户组
        adminAuthGroupDao.delete(group.getId());
        //  清理用户组下的用户
        adminAuthGroupAccessDao.deleteByGroupId(group.getId());
        return Result.wrapResult(AdminAuthRuleLang.DROP_SUCCESS);
    }

}

class TestAdminAuthGroupService  {

    @Autowired
    private AdminAuthGroupService adminAuthGroupService;

    @Test
    public void testDelete() {

        AdminAuthGroup group = new AdminAuthGroup();
        group.setId(4l);
        adminAuthGroupService.delete(group);
    }

}