package org.springblade.app.controller;

import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tool.api.R;
import org.springblade.estate.entity.ParkingArea;
import org.springblade.estate.entity.ParkingLot;
import org.springblade.estate.feign.IParkingAreaClient;
import org.springblade.estate.feign.IParkingLotClient;
import org.springblade.estate.vo.ParkingAreaVO;
import org.springblade.estate.vo.ParkingLotVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


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

	private final IParkingAreaClient parkingAreaClient;

	@GetMapping("list")
	public R list(ParkingArea parkingArea){
		List<ParkingAreaVO> list = parkingAreaClient.list(parkingArea);
		return R.data(list);
	}

}
