package com.aps.system.api; import com.aps.common.core.constant.SecurityConstants; import com.aps.common.core.constant.ServiceNameConstants; import com.aps.common.core.domain.R; import com.aps.system.api.factory.RemoteCoreFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestHeader; /** * 任务服务 * * @author hjy */ @FeignClient(contextId = "remoteCoreService", value = ServiceNameConstants.CORE_SERVICE, fallbackFactory = RemoteCoreFallbackFactory.class) public interface RemoteCoreService { /** * 刷新BOM数据到Redis * @param source * @return */ @PostMapping("/ApsBomHeader/setBomDataToRedis") R setBomDataToRedis(@RequestHeader(SecurityConstants.FROM_SOURCE) String source); }