|
|
@@ -14,9 +14,7 @@ import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
@@ -34,9 +32,9 @@ public class AppResourceRouteController {
|
|
|
@Resource
|
|
|
private ResourceRouteService routeService;
|
|
|
|
|
|
- @GetMapping("/page")
|
|
|
+ @PostMapping("/page")
|
|
|
@Operation(summary = "获得航线分页列表")
|
|
|
- public CommonResult<PageResult<AppResourceRouteRespVO>> getRoutePage(@Valid AppResourceRoutePageReqVO pageReqVO) {
|
|
|
+ public CommonResult<PageResult<AppResourceRouteRespVO>> getRoutePage(@RequestBody @Valid AppResourceRoutePageReqVO pageReqVO) {
|
|
|
PageResult<AppResourceRouteRespVO> pageResult = routeService.getAppRoutePage(pageReqVO);
|
|
|
return success(pageResult);
|
|
|
}
|