package fcb.project.manager.core.feignInterfaces;

import fcb.project.manager.base.entity.SceneRspBean;
import fcb.project.manager.core.feignInterfaces.fallBack.SceneFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;
import java.util.Map;

/**
 * 2 * @Author: Abner
 * 3 * @Date: 2021/1/20 21:21
 * 4
 */
@FeignClient(name = "4dkankan-scene" , fallback = SceneFeignFallBack.class)
public interface SceneFeign {

    @PostMapping("/api/scene/updateStatus")
    SceneRspBean updateSceneStatus(@RequestBody Map<String, Object> param, @RequestHeader(name = "token") String token);

    @PostMapping("/api/scene/statisticsPoints")
    SceneRspBean statisticsPoints(@RequestBody Map<String, String> param, @RequestHeader(name = "token") String token);

    @PostMapping("/api/scene/listScenesInNums")
    SceneRspBean listScenesInNums(@RequestBody List<String> nums, @RequestHeader(name = "token") String token);
}
