|
|
@ -22,10 +22,7 @@ import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.IcBuildingDTO; |
|
|
|
import com.epmet.service.IcBuildingService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -54,4 +51,10 @@ public class IcBuildingController { |
|
|
|
public Result<List<OptionResultDTO>> getBuildingOptions(@RequestBody IcBuildingDTO dto) { |
|
|
|
return new Result<List<OptionResultDTO>>().ok(icBuildingService.getBuildingOptions(dto.getNeighborHoodId())); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("{id}") |
|
|
|
public Result<IcBuildingDTO> get(@PathVariable("id") String id){ |
|
|
|
IcBuildingDTO data = icBuildingService.get(id); |
|
|
|
return new Result<IcBuildingDTO>().ok(data); |
|
|
|
} |
|
|
|
} |
|
|
|