class GroupMemberController {

    @RequestMapping(value = "/update", method = RequestMethod.PUT)
    public ServiceResult<String> update(@Validated(UpdateMember.class) @RequestBody UserGroup userGroup, @CurrentUser LoginUser user, Errors errors) throws Exception {
        userGroup.setUpdate_user_no(user.getUserNo());
        ValidateResult validateRes = groupMemberService.validatePermisionUpdateAndDelete(user, userGroup, errors)
                .addAssert(() -> userGroupDao.updateUserPersimion(userGroup) > 0, message.db_message_update_operation_failed).validate();
        if (!validateRes.isValid()) {
            return ServiceResult.fail(validateRes.getSummarize());
        }
        return ServiceResult.success();
    }

}