|
@@ -30,7 +30,7 @@ import static com.yc.ship.framework.operatelog.core.enums.OperateTypeEnum.EXPORT
|
|
|
|
|
|
@Tag(name = "管理后台 - 产品路线点位")
|
|
|
@RestController
|
|
|
-@RequestMapping("/route-point")
|
|
|
+@RequestMapping("/resource/routePoint")
|
|
|
@Validated
|
|
|
public class RoutePointController {
|
|
|
|
|
@@ -39,14 +39,14 @@ public class RoutePointController {
|
|
|
|
|
|
@PostMapping("/create")
|
|
|
@Operation(summary = "创建产品路线点位")
|
|
|
- @PreAuthorize("@ss.hasPermission('product:route-point:create')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('resource:route-point:create')")
|
|
|
public CommonResult<Long> createRoutePoint(@Valid @RequestBody RoutePointSaveReqVO createReqVO) {
|
|
|
return success(routePointService.createRoutePoint(createReqVO));
|
|
|
}
|
|
|
|
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "更新产品路线点位")
|
|
|
- @PreAuthorize("@ss.hasPermission('product:route-point:update')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('resource:route-point:update')")
|
|
|
public CommonResult<Boolean> updateRoutePoint(@Valid @RequestBody RoutePointSaveReqVO updateReqVO) {
|
|
|
routePointService.updateRoutePoint(updateReqVO);
|
|
|
return success(true);
|
|
@@ -55,7 +55,7 @@ public class RoutePointController {
|
|
|
@DeleteMapping("/delete")
|
|
|
@Operation(summary = "删除产品路线点位")
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('product:route-point:delete')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('resource:route-point:delete')")
|
|
|
public CommonResult<Boolean> deleteRoutePoint(@RequestParam("id") Long id) {
|
|
|
routePointService.deleteRoutePoint(id);
|
|
|
return success(true);
|
|
@@ -64,7 +64,7 @@ public class RoutePointController {
|
|
|
@GetMapping("/get")
|
|
|
@Operation(summary = "获得产品路线点位")
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
- @PreAuthorize("@ss.hasPermission('product:route-point:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('resource:route-point:query')")
|
|
|
public CommonResult<RoutePointRespVO> getRoutePoint(@RequestParam("id") Long id) {
|
|
|
RoutePointDO routePoint = routePointService.getRoutePoint(id);
|
|
|
return success(BeanUtils.toBean(routePoint, RoutePointRespVO.class));
|
|
@@ -72,7 +72,7 @@ public class RoutePointController {
|
|
|
|
|
|
@GetMapping("/page")
|
|
|
@Operation(summary = "获得产品路线点位分页")
|
|
|
- @PreAuthorize("@ss.hasPermission('product:route-point:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('resource:route-point:query')")
|
|
|
public CommonResult<PageResult<RoutePointRespVO>> getRoutePointPage(@Valid RoutePointPageReqVO pageReqVO) {
|
|
|
PageResult<RoutePointDO> pageResult = routePointService.getRoutePointPage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, RoutePointRespVO.class));
|
|
@@ -80,7 +80,7 @@ public class RoutePointController {
|
|
|
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出产品路线点位 Excel")
|
|
|
- @PreAuthorize("@ss.hasPermission('product:route-point:export')")
|
|
|
+ @PreAuthorize("@ss.hasPermission('resource:route-point:export')")
|
|
|
@OperateLog(type = EXPORT,enable = false)
|
|
|
public void exportRoutePointExcel(@Valid RoutePointPageReqVO pageReqVO,
|
|
|
HttpServletResponse response) throws IOException {
|