|
@@ -0,0 +1,47 @@
|
|
|
|
|
+package com.yc.ship.module.resource.controller.app.route;
|
|
|
|
|
+
|
|
|
|
|
+import com.yc.ship.framework.common.pojo.CommonResult;
|
|
|
|
|
+import com.yc.ship.framework.common.pojo.PageResult;
|
|
|
|
|
+import com.yc.ship.framework.common.util.collection.CollectionUtils;
|
|
|
|
|
+import com.yc.ship.framework.common.util.object.BeanUtils;
|
|
|
|
|
+import com.yc.ship.module.resource.controller.admin.route.vo.ResourceRoutePageReqVO;
|
|
|
|
|
+import com.yc.ship.module.resource.controller.admin.route.vo.ResourceRouteRespVO;
|
|
|
|
|
+import com.yc.ship.module.resource.controller.app.route.vo.AppResourceRoutePageReqVO;
|
|
|
|
|
+import com.yc.ship.module.resource.controller.app.route.vo.AppResourceRouteRespVO;
|
|
|
|
|
+import com.yc.ship.module.resource.dal.dataobject.dock.ResourceDockDO;
|
|
|
|
|
+import com.yc.ship.module.resource.dal.dataobject.route.ResourceRouteDO;
|
|
|
|
|
+import com.yc.ship.module.resource.dal.dataobject.scenic.ResourceScenicDO;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
+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 javax.validation.Valid;
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.Arrays;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
+
|
|
|
|
|
+import static com.yc.ship.framework.common.pojo.CommonResult.success;
|
|
|
|
|
+
|
|
|
|
|
+@Tag(name = "航线 APP - 航线接口")
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping("/resource/route")
|
|
|
|
|
+@Validated
|
|
|
|
|
+public class AppResourceRouteController {
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/page")
|
|
|
|
|
+ @Operation(summary = "获得航线管理分页")
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermission('resource:route:query')")
|
|
|
|
|
+ public CommonResult<PageResult<AppResourceRouteRespVO>> getRoutePage(@Valid AppResourceRoutePageReqVO pageReqVO) {
|
|
|
|
|
+ // TODO 待完善
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ return success(null);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|