class GroupMemberService {

    public ValidatorChain validatePermisionUpdateAndDelete(LoginUser user, UserGroup userGroup, Errors errors) throws SQLException {
        return ValidatorChain.newInstance().controllerValidate(errors)
                .addAssert(() -> this.validateUserOptUserPermisionInGroup(user, userGroup), "你没有当前DAS Team的组员操作权限.")
                .addAssert(() -> this.validateUserPermisionCompare(user, userGroup), "你所授予的权限大于你所拥有的权限.");
    }

}