package com.sptg.estate.biz.controller;

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.AccessBlackCardFeign;
import com.sptg.estate.biz.service.AccessBlackCardServiceInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * title: UserCardController
 * package: com.sptg.estate.biz.controller
 * description: 门禁卡黑名单 控制器
 *
 *
 *
 */
@RestController
public class AccessBlackCardController implements AccessBlackCardFeign {

    private final AccessBlackCardServiceInterface accessBlackCardServiceInterface;

    @Autowired
    public AccessBlackCardController(AccessBlackCardServiceInterface accessBlackCardServiceInterface) {
        this.accessBlackCardServiceInterface = accessBlackCardServiceInterface;
    }

    @Override
    @PostMapping(value = "/accessBlackCard/showAccessBlackCardList")
    public ResultBean<Page<AccessBlackCard>> showAccessBlackCardList(@RequestBody AccessBlackCardDto accessBlackCardDto) {
        return this.accessBlackCardServiceInterface.showAccessBlackCardList(accessBlackCardDto);
    }

}
