|
@@ -1,8 +1,10 @@
|
|
|
package com.zhentao.touristAttractions.controller;
|
|
|
|
|
|
+import com.zhentao.touristAttractions.dto.TouristattrcationDto;
|
|
|
import com.zhentao.touristAttractions.service.TouristattractionsService;
|
|
|
import com.zhentao.vo.Result;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -13,8 +15,8 @@ public class TouristAttractionsController {
|
|
|
private TouristattractionsService service;
|
|
|
// 查询所有的旅游景点
|
|
|
@RequestMapping("findAll")
|
|
|
- public Result findAll() {
|
|
|
- return service.findAll();
|
|
|
+ public Result findAll(@RequestBody TouristattrcationDto dto) {
|
|
|
+ return service.findAll(dto);
|
|
|
}
|
|
|
|
|
|
}
|