package com.sptg.estate.biz.controller;

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.FaceChargeProjectResidentialUserFeign;
import com.sptg.estate.biz.service.FaceChargeProjectResidentialUserServiceInterface;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * title: FaceChargeProjectController
 * package: com.sptg.estate.biz.controller
 * description: 人脸套餐绑定 控制器
 *
 *
 *
 */

@RestController
@AllArgsConstructor
public class FaceChargeProjectResidentialUserController implements FaceChargeProjectResidentialUserFeign {

    private final FaceChargeProjectResidentialUserServiceInterface faceChargeProjectResidentialUserServiceInterface;

    @Override
    @PostMapping("/faceChargeProResUser/addFaceChargeProjectResidentialUser")
    public ResultBean<Boolean> addFaceChargeProjectResidentialUser(@RequestBody FaceChargeProjectResidentialUserDto dto){
        return faceChargeProjectResidentialUserServiceInterface.addFaceChargeProjectResidentialUser(dto);
    }

    @Override
    @PostMapping("/faceChargeProResUser/findFaceChargeProjectResidentialUser")
    public ResultBean<FaceChargeProjectResidentialUser> findFaceChargeProjectResidentialUser(@RequestBody FaceChargeProjectResidentialUserDto dto){
        return faceChargeProjectResidentialUserServiceInterface.findFaceChargeProjectResidentialUser(dto);
    }

}
