package com.sptg.estate.api.feigns;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.entity.PositionRecord;
import com.sptg.estate.api.feigns.fallback.PositionRecordFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: PositionFeign
 * package: com.sptg.estate.api.feigns
 * description: 定位记录-服务接口
 *
 *               
 *                
 */
@FeignClient(value= "smart-house-estate",fallbackFactory= PositionRecordFeignFallbackFactory.class)
public interface PositionRecordFeign {
    /**
     * 功能描述:根据定位id查询定位记录
     * @param positionId
     * @return ResultBean<PositionRecord>
     *               
     *                     
     */
    @PostMapping(value = "/implement/position/record/getListByPositionId")
    ResultBean<PositionRecord> getListByPositionId(@RequestBody Long positionId);
    /**
     * 功能描述:根据id查询记录
     * @param id
     * @return ResultBean<PositionRecord>
     *               
     *                     
     */
    @PostMapping(value = "/implement/position/record/findById")
    ResultBean<PositionRecord> findById(@RequestBody Long id);
}
