|
@@ -6,6 +6,7 @@ import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.util.RespDTOUtil;
|
|
|
import com.diagbot.vo.PushSetVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
@@ -18,6 +19,7 @@ public class PushSetFacade {
|
|
|
@Autowired
|
|
|
private AiptServiceClient aiptServiceClient;
|
|
|
|
|
|
+// @Cacheable(value = "data-service", key = "'GetPushSet:mode_' + #pushSetVO.mode", unless = "#result == null")
|
|
|
public PushSetDTO getPushSet(PushSetVO pushSetVO) {
|
|
|
RespDTO<PushSetDTO> respDTO = aiptServiceClient.getPushSet(pushSetVO);
|
|
|
RespDTOUtil.respNGDeal(respDTO, "获取推理配置信息失败");
|