package com.jeeplus.sys.feign;

import com.jeeplus.sys.domain.Area;
import com.jeeplus.sys.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AreaApiImpl implements IAreaApi {

    @Autowired
    private AreaService areaService;

    @Override
    public List<Area> getAreaDTOByName(String name) {
        return areaService.getAreaDTOByName(name);
    }
}
