package com.sptg.estate.api.feigns;

import com.baomidou.mybatisplus.plugins.Page;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.dto.AccessBlackCardDto;
import com.sptg.estate.api.entity.AccessBlackCard;
import com.sptg.estate.api.feigns.fallback.AccessBlackCardFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: AccessCardFeign
 * package: com.sptg.estate.api.feigns
 * description: 门禁卡黑名单 服务接口
 *
 *
 *
 */
@FeignClient(value = "smart-house-estate",fallbackFactory = AccessBlackCardFeignFallbackFactory.class)
public interface AccessBlackCardFeign {

    /**
     * 功能描述:门禁卡查询列表
     * @param accessBlackCardDto 门禁卡业务对象（含分页及查询条件）
     * @return ResultBean<Page<AccessCard>>
     *
     *
     */
    @PostMapping(value = "/accessBlackCard/showAccessBlackCardList")
    ResultBean<Page<AccessBlackCard>> showAccessBlackCardList(@RequestBody AccessBlackCardDto accessBlackCardDto);

}
