From 96f7af2f3bf9a36dd48e0e6bf4f8a8ca1e31ed7d Mon Sep 17 00:00:00 2001 From: vince <757871790@qq.com> Date: 星期三, 08 十一月 2023 17:49:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'orgin/igds-api-gateway' into igds-api-gateway --- src/main/java/com/fzzy/gateway/hx2023/service/ApiInitService.java | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fzzy/gateway/hx2023/service/ApiInitService.java b/src/main/java/com/fzzy/gateway/hx2023/service/ApiInitService.java index 05ebc0e..f9b093f 100644 --- a/src/main/java/com/fzzy/gateway/hx2023/service/ApiInitService.java +++ b/src/main/java/com/fzzy/gateway/hx2023/service/ApiInitService.java @@ -1,19 +1,21 @@ package com.fzzy.gateway.hx2023.service; +import com.bstek.dorado.annotation.Expose; import com.fzzy.gateway.api.GatewayRemoteManager; import com.fzzy.gateway.api.GatewayRemoteService; import com.fzzy.gateway.entity.GatewayConf; import com.fzzy.gateway.service.GatewayConfService; -import lombok.extern.slf4j.Slf4j; + + import org.springframework.stereotype.Component; import javax.annotation.Resource; + import java.util.List; /** * 褰撳墠鎺ュ彛锛屽垵濮嬪寲鐩稿叧 */ -@Slf4j @Component public class ApiInitService { @@ -23,6 +25,10 @@ private GatewayRemoteManager gatewayRemoteManager; + /** + * apiInitService#init + */ + @Expose public void init() { List<GatewayConf> list = confService.listAll(); @@ -34,9 +40,11 @@ GatewayRemoteService gatewayRemoteService; for (GatewayConf gatewayConf : list) { gatewayRemoteService = gatewayRemoteManager.getRemoteService(gatewayConf.getPushProtocol()); - gatewayRemoteService.authorize(gatewayConf); + gatewayRemoteService.init(gatewayConf); } } + + } -- Gitblit v1.9.3