refactor: change graphql package location

This commit is contained in:
xushanchuan 2021-03-23 17:15:49 +08:00
parent 7b7016e569
commit b24f65c2d6
No known key found for this signature in database
GPG Key ID: 44D23C44E00838D6
10 changed files with 13 additions and 16 deletions

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;
@ -18,7 +18,6 @@ import io.spring.application.data.ArticleData;
import io.spring.application.data.CommentData; import io.spring.application.data.CommentData;
import io.spring.core.user.User; import io.spring.core.user.User;
import io.spring.core.user.UserRepository; import io.spring.core.user.UserRepository;
import io.spring.graphql.DgsConstants;
import io.spring.graphql.DgsConstants.ARTICLEPAYLOAD; import io.spring.graphql.DgsConstants.ARTICLEPAYLOAD;
import io.spring.graphql.DgsConstants.COMMENT; import io.spring.graphql.DgsConstants.COMMENT;
import io.spring.graphql.DgsConstants.PROFILE; import io.spring.graphql.DgsConstants.PROFILE;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;
@ -15,8 +15,8 @@ import io.spring.core.favorite.ArticleFavorite;
import io.spring.core.favorite.ArticleFavoriteRepository; import io.spring.core.favorite.ArticleFavoriteRepository;
import io.spring.core.service.AuthorizationService; import io.spring.core.service.AuthorizationService;
import io.spring.core.user.User; import io.spring.core.user.User;
import io.spring.graphql.AuthenticationException;
import io.spring.graphql.DgsConstants.MUTATION; import io.spring.graphql.DgsConstants.MUTATION;
import io.spring.graphql.exception.AuthenticationException;
import io.spring.graphql.types.ArticlePayload; import io.spring.graphql.types.ArticlePayload;
import io.spring.graphql.types.CreateArticleInput; import io.spring.graphql.types.CreateArticleInput;
import io.spring.graphql.types.DeletionStatus; import io.spring.graphql.types.DeletionStatus;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;
@ -14,8 +14,8 @@ import io.spring.core.comment.Comment;
import io.spring.core.comment.CommentRepository; import io.spring.core.comment.CommentRepository;
import io.spring.core.service.AuthorizationService; import io.spring.core.service.AuthorizationService;
import io.spring.core.user.User; import io.spring.core.user.User;
import io.spring.graphql.AuthenticationException;
import io.spring.graphql.DgsConstants.MUTATION; import io.spring.graphql.DgsConstants.MUTATION;
import io.spring.graphql.exception.AuthenticationException;
import io.spring.graphql.types.CommentPayload; import io.spring.graphql.types.CommentPayload;
import io.spring.graphql.types.DeletionStatus; import io.spring.graphql.types.DeletionStatus;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;
@ -9,7 +9,6 @@ import io.spring.application.UserQueryService;
import io.spring.application.data.UserData; import io.spring.application.data.UserData;
import io.spring.application.data.UserWithToken; import io.spring.application.data.UserWithToken;
import io.spring.core.service.JwtService; import io.spring.core.service.JwtService;
import io.spring.graphql.DgsConstants;
import io.spring.graphql.DgsConstants.QUERY; import io.spring.graphql.DgsConstants.QUERY;
import io.spring.graphql.DgsConstants.USERPAYLOAD; import io.spring.graphql.DgsConstants.USERPAYLOAD;
import io.spring.graphql.types.User; import io.spring.graphql.types.User;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;
@ -10,7 +10,6 @@ import io.spring.application.data.ArticleData;
import io.spring.application.data.CommentData; import io.spring.application.data.CommentData;
import io.spring.application.data.ProfileData; import io.spring.application.data.ProfileData;
import io.spring.core.user.User; import io.spring.core.user.User;
import io.spring.graphql.DgsConstants;
import io.spring.graphql.DgsConstants.ARTICLE; import io.spring.graphql.DgsConstants.ARTICLE;
import io.spring.graphql.DgsConstants.COMMENT; import io.spring.graphql.DgsConstants.COMMENT;
import io.spring.graphql.DgsConstants.QUERY; import io.spring.graphql.DgsConstants.QUERY;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;
@ -9,8 +9,8 @@ import io.spring.application.data.ProfileData;
import io.spring.core.user.FollowRelation; import io.spring.core.user.FollowRelation;
import io.spring.core.user.User; import io.spring.core.user.User;
import io.spring.core.user.UserRepository; import io.spring.core.user.UserRepository;
import io.spring.graphql.AuthenticationException;
import io.spring.graphql.DgsConstants.MUTATION; import io.spring.graphql.DgsConstants.MUTATION;
import io.spring.graphql.exception.AuthenticationException;
import io.spring.graphql.types.Profile; import io.spring.graphql.types.Profile;
import io.spring.graphql.types.ProfilePayload; import io.spring.graphql.types.ProfilePayload;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import io.spring.core.user.User; import io.spring.core.user.User;
import java.util.Optional; import java.util.Optional;

View File

@ -1,4 +1,4 @@
package io.spring.graphql.users; package io.spring.graphql;
import com.netflix.graphql.dgs.DgsComponent; import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsData; import com.netflix.graphql.dgs.DgsData;

View File

@ -1,3 +1,3 @@
package io.spring.graphql; package io.spring.graphql.exception;
public class AuthenticationException extends RuntimeException {} public class AuthenticationException extends RuntimeException {}