package com.fdkankan.scene.api.feign;

import com.fdkankan.common.response.ResultData;
import com.fdkankan.scene.api.vo.SceneCnt;
import com.fdkankan.scene.api.vo.SceneProDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "4dkankan-center-scene",contextId = "sceneUserSceneClient")
@RequestMapping("/scene/feign/user/scene")
public interface SceneUserSceneClient {

    @PostMapping("/getSceneCnt")
    ResultData<SceneCnt> getSceneCnt(@RequestParam(value = "userId") Long userId, @RequestParam(value = "cameraId") Long cameraId) ;

    @PostMapping("/getSceneNumByCameraId")
    ResultData<Integer> getSceneNumByCameraId(@RequestParam(value = "cameraId") Long cameraId) ;

    @PostMapping("/getLastSceneByCameraId")
    ResultData<SceneProDTO> getLastSceneByCameraId(@RequestParam(value = "cameraId") Long cameraId) ;

}
