Рефакторинг

This commit is contained in:
upagge 2020-03-01 15:51:12 +03:00
parent fd7a4ab261
commit c06554a42b
17 changed files with 27 additions and 28 deletions

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
/**
* TODO: Добавить комментарий енума.

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import com.tsc.bitbucketbot.domain.BitbucketUserRole;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.tsc.bitbucketbot.bitbucket;
package com.tsc.bitbucketbot.dto.bitbucket;
/**
* TODO: Добавить комментарий енума.

View File

@ -1,7 +1,7 @@
package com.tsc.bitbucketbot.bitbucket.sheet;
package com.tsc.bitbucketbot.dto.bitbucket.sheet;
import com.tsc.bitbucketbot.bitbucket.PullRequestJson;
import com.tsc.bitbucketbot.bitbucket.Sheet;
import com.tsc.bitbucketbot.dto.bitbucket.PullRequestJson;
import com.tsc.bitbucketbot.dto.bitbucket.Sheet;
/**
* TODO: Добавить описание класса.

View File

@ -1,7 +1,7 @@
package com.tsc.bitbucketbot.bitbucket.sheet;
package com.tsc.bitbucketbot.dto.bitbucket.sheet;
import com.tsc.bitbucketbot.bitbucket.Sheet;
import com.tsc.bitbucketbot.bitbucket.UserJson;
import com.tsc.bitbucketbot.dto.bitbucket.Sheet;
import com.tsc.bitbucketbot.dto.bitbucket.UserJson;
/**
* TODO: Добавить описание класса.

View File

@ -1,10 +1,9 @@
package com.tsc.bitbucketbot.scheduler;
import com.tsc.bitbucketbot.bitbucket.Sheet;
import com.tsc.bitbucketbot.bitbucket.UserJson;
import com.tsc.bitbucketbot.bitbucket.sheet.UserSheetJson;
import com.tsc.bitbucketbot.config.BitbucketConfig;
import com.tsc.bitbucketbot.domain.entity.User;
import com.tsc.bitbucketbot.dto.bitbucket.UserJson;
import com.tsc.bitbucketbot.dto.bitbucket.sheet.UserSheetJson;
import com.tsc.bitbucketbot.service.UserService;
import com.tsc.bitbucketbot.service.Utils;
import lombok.RequiredArgsConstructor;

View File

@ -1,7 +1,5 @@
package com.tsc.bitbucketbot.scheduler;
import com.tsc.bitbucketbot.bitbucket.PullRequestJson;
import com.tsc.bitbucketbot.bitbucket.sheet.PullRequestSheetJson;
import com.tsc.bitbucketbot.config.BitbucketConfig;
import com.tsc.bitbucketbot.domain.MessageSend;
import com.tsc.bitbucketbot.domain.PullRequestStatus;
@ -10,6 +8,8 @@ import com.tsc.bitbucketbot.domain.entity.PullRequest;
import com.tsc.bitbucketbot.domain.entity.Reviewer;
import com.tsc.bitbucketbot.domain.entity.User;
import com.tsc.bitbucketbot.domain.util.ReviewerChange;
import com.tsc.bitbucketbot.dto.bitbucket.PullRequestJson;
import com.tsc.bitbucketbot.dto.bitbucket.sheet.PullRequestSheetJson;
import com.tsc.bitbucketbot.service.MessageSendService;
import com.tsc.bitbucketbot.service.PullRequestsService;
import com.tsc.bitbucketbot.service.UserService;

View File

@ -1,15 +1,15 @@
package com.tsc.bitbucketbot.service.converter;
import com.tsc.bitbucketbot.bitbucket.PullRequestJson;
import com.tsc.bitbucketbot.bitbucket.PullRequestState;
import com.tsc.bitbucketbot.bitbucket.UserDecisionJson;
import com.tsc.bitbucketbot.bitbucket.UserJson;
import com.tsc.bitbucketbot.bitbucket.UserPullRequestStatus;
import com.tsc.bitbucketbot.domain.PullRequestStatus;
import com.tsc.bitbucketbot.domain.ReviewerStatus;
import com.tsc.bitbucketbot.domain.entity.PullRequest;
import com.tsc.bitbucketbot.domain.entity.Reviewer;
import com.tsc.bitbucketbot.domain.entity.User;
import com.tsc.bitbucketbot.dto.bitbucket.PullRequestJson;
import com.tsc.bitbucketbot.dto.bitbucket.PullRequestState;
import com.tsc.bitbucketbot.dto.bitbucket.UserDecisionJson;
import com.tsc.bitbucketbot.dto.bitbucket.UserJson;
import com.tsc.bitbucketbot.dto.bitbucket.UserPullRequestStatus;
import com.tsc.bitbucketbot.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.core.convert.converter.Converter;

View File

@ -1,7 +1,7 @@
package com.tsc.bitbucketbot.service.converter;
import com.tsc.bitbucketbot.bitbucket.UserJson;
import com.tsc.bitbucketbot.domain.entity.User;
import com.tsc.bitbucketbot.dto.bitbucket.UserJson;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Service;

View File

@ -1,8 +1,8 @@
package com.tsc.bitbucketbot.service.impl;
import com.tsc.bitbucketbot.bitbucket.sheet.PullRequestSheetJson;
import com.tsc.bitbucketbot.config.BitbucketConfig;
import com.tsc.bitbucketbot.domain.entity.User;
import com.tsc.bitbucketbot.dto.bitbucket.sheet.PullRequestSheetJson;
import com.tsc.bitbucketbot.exception.RegException;
import com.tsc.bitbucketbot.repository.jpa.UserRepository;
import com.tsc.bitbucketbot.service.UserService;