package org.springblade.app.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.estate.dto.AccessRecordDTO;
import org.springblade.estate.entity.AccessRecord;
import org.springblade.estate.feign.IAccessRecordClient;
import org.springframework.web.bind.annotation.*;


/**
 * @author cy-computer
 */
@RestController
@RequestMapping("/app/accessRecords")
@RequiredArgsConstructor
@Slf4j
public class AccessRecordsController {

	private final IAccessRecordClient accessRecordClient;

	@PostMapping(value = "/list")
	public R list(@RequestBody AccessRecordDTO accessRecordDTO){
		BladePage page = accessRecordClient.page(accessRecordDTO);
		return R.data(page);
	}




}
