package com.sptg.estate.api.feigns;


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

/**
 * title: FaceChargeProjectFeign
 * package: com.sptg.estate.api.feigns.fallback
 * description: 人脸套餐绑定 服务接口
 *
 *
 *
 */
@FeignClient(value = "smart-house-estate",fallbackFactory = FaceChargeProjectResidentialUserFeignFallbackFactory.class)
public interface FaceChargeProjectResidentialUserFeign {

    @PostMapping("/faceChargeProResUser/addFaceChargeProjectResidentialUser")
    ResultBean<Boolean> addFaceChargeProjectResidentialUser(@RequestBody FaceChargeProjectResidentialUserDto dto);

    @PostMapping("/faceChargeProResUser/findFaceChargeProjectResidentialUser")
    ResultBean<FaceChargeProjectResidentialUser> findFaceChargeProjectResidentialUser(@RequestBody FaceChargeProjectResidentialUserDto dto);

}
