style(微服务化改造): 循环依赖升级改造

This commit is contained in:
OTTO 2024-08-26 10:19:48 +08:00
parent c745532df6
commit fa139fffb3
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,6 @@ import com.gitlink.softbot.utils.AuthOperate;
import com.gitlink.softbot.utils.GitLinkApi;
import com.gitlink.softbot.vo.*;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.*;
import com.gitlink.softbot.vo.BotInputVO;
import javax.annotation.Resource;

View File

@ -20,6 +20,7 @@ import com.gitlink.softbot.vo.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils;
@ -55,6 +56,7 @@ public class MarketService implements IMarketService {
GitLinkApi api;
@Autowired
@Lazy
UserService userService;
@Override

View File

@ -23,9 +23,6 @@ import java.util.List;
@Slf4j
public class AsyncDeleteWebhookService {
@Resource
private UserService userService;
@Autowired
private GitLinkApi api;

View File

@ -12,6 +12,7 @@ import com.gitlink.softbot.utils.response.AddWebhookResponse;
import com.gitlink.softbot.vo.Webhook;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Recover;
import org.springframework.retry.annotation.Retryable;
@ -26,6 +27,7 @@ import java.util.List;
public class AsyncUpdateWebhookService {
@Resource
@Lazy
private UserService userService;
@Autowired