class GroupController {

    @RequestMapping(value = "/userGroups")
    public ServiceResult<UserGroup> getUserGroups(@CurrentUser LoginUser user) throws Exception {
        return ServiceResult.success(userGroupDao.getUserGroupByUserId(user.getId()));
    }

}