package com.hdkj.lt.feign;

import com.hdkj.lt.base.constants.SystemGlobalConstant;
import com.hdkj.lt.feign.fallback.RefreshCacheApiClientFallBack;
import com.hdkj.hussar.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @Author wcx
 * @Date 2025/7/10 20:46
 * @Version 1.0
 */
@FeignClient(value = SystemGlobalConstant.SERVICE_NAME_LOAD_TRANSFER_BF,contextId = "IRefreshCacheApiClient", fallbackFactory = RefreshCacheApiClientFallBack.class)
public interface IRefreshCacheApiClient {

    // 获取异动线路信息
    String API_MAPPING_SERVICE_REFRESH_FEEDER_CACHE = "stru/refreshFeederCacheById";

    // 生成动画反演数据
    String API_MAPPING_SERVICE_GENERATE_CARTOON_DATA = "showCartoon/generateCartoonData";

    @GetMapping(API_MAPPING_SERVICE_REFRESH_FEEDER_CACHE)
    ApiResponse<Void> refreshFeederCacheById(@RequestParam("feederId") String feederId);

    @GetMapping(API_MAPPING_SERVICE_GENERATE_CARTOON_DATA)
    ApiResponse<Void> generateCartoonData(@RequestParam("objId") Long objId, @RequestParam("objType") String objType);

}
