package org.springblade.app.controller;

import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.community.entity.Room;
import org.springblade.community.feign.IRoomClient;
import org.springblade.community.vo.RoomVO;
import org.springblade.core.tool.api.R;
import org.springblade.estate.entity.ParkingLot;
import org.springblade.estate.feign.IParkingLotClient;
import org.springblade.estate.vo.ParkingLotVO;
import org.springframework.web.bind.annotation.*;
import java.util.List;


@RestController
@RequiredArgsConstructor
@Api(value = "", tags = "接口")
@RequestMapping(value = "/app/parkingLot")
@Slf4j
public class ParkingLotController {

	private final IParkingLotClient parkingLotClient;

	@GetMapping("list")
	public R list(ParkingLot parkingLot){
		List<ParkingLotVO> list = parkingLotClient.list(parkingLot);
		return R.data(list);
	}

}
