package fcb.project.manager.core.feignInterfaces;

import fcb.project.manager.base.entity.CommonRspBean;
import fcb.project.manager.base.entity.PanoInitSceneTotalRsp;
import fcb.project.manager.base.entity.SceneRspBean;
import fcb.project.manager.base.entity.SevenTwoZeroSceneRspBean;
import fcb.project.manager.core.feignInterfaces.fallBack.PanoFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 2 * @Author: Abner
 * 3 * @Date: 2021/1/26 18:38
 * 4
 */
@FeignClient(name =  "pano-service" , fallback = PanoFeignFallBack.class)
public interface PanoFeign {

    @GetMapping("/fcb/pano/scene/getVrSceneCode/{houseId}/{status}/{type}")
    public SevenTwoZeroSceneRspBean getFdkanaknSceneNum(@RequestHeader(name = "token") String token , @PathVariable(name = "") String
            houseId , @PathVariable(name = "status") String status , @PathVariable(name = "type")String type);

    @GetMapping("/fcb/pano/scene/house/audit/{houseId}/{status}")
    public CommonRspBean auditedVrNotice(@PathVariable String houseId , @PathVariable Integer status, @RequestHeader(name = "token") String token );

    @GetMapping("/fcb/pano/scene/house/remove/{houseId}")
    public CommonRspBean deleteVrNotice(@PathVariable String houseId , @RequestHeader(name = "token") String token );

    @PostMapping("/fcb/pano/scene/house/findAllHouseId")
    public CommonRspBean getVrLinks(@RequestBody Map<String ,Object> body , @RequestHeader(name = "token") String token);

    @GetMapping("/fcb/pano/scene/getIndex/{houseId}")
    public CommonRspBean getOneVrlink(@PathVariable String houseId , @RequestHeader(name = "token") String token);

    @GetMapping("/fcb/pano/init/list/{houseId}")
    public PanoInitSceneTotalRsp getAllTypeSceneNums(@PathVariable String houseId , @RequestHeader(name = "token") String token);

    @GetMapping("/fcb/pano/house/statistics/{houseId}")
    public CommonRspBean statistics(@PathVariable String houseId , @RequestHeader(name = "token") String token);

    @GetMapping("/fcb/pano/house/getVrSceneCode/{houseId}")
    public SevenTwoZeroSceneRspBean getAllSceneNum(@RequestHeader(name = "token") String token , @PathVariable(name = "") String houseId);

    @GetMapping("/fcb/pano/house/getVrSceneCodeAndType/{houseId}")
    SceneRspBean listPanoSceneWithTypes(@RequestHeader(name = "token")String token, @PathVariable(name = "houseId") String id);
}
