优化
This commit is contained in:
+3
-3
@@ -41,7 +41,7 @@ public class PlatformCarrierScheduleQueryController {
|
||||
|
||||
@Operation(summary = "查询六家船公司合规适配策略")
|
||||
@GetMapping("/carriers")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule-query:view')")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule-query:list')")
|
||||
public ApiResponse<List<CarrierDescriptor>> carriers(@AuthenticationPrincipal AuthenticatedUser user) {
|
||||
FirstlegScopeGuard.platform(user);
|
||||
return ApiResponse.success(service.carriers());
|
||||
@@ -57,7 +57,7 @@ public class PlatformCarrierScheduleQueryController {
|
||||
}
|
||||
|
||||
@GetMapping("/{queryId}")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule-query:view')")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule-query:list')")
|
||||
public ApiResponse<Detail> detail(@AuthenticationPrincipal AuthenticatedUser user,
|
||||
@PathVariable @Positive long queryId) {
|
||||
FirstlegScopeGuard.platform(user, service.customerId(queryId));
|
||||
@@ -65,7 +65,7 @@ public class PlatformCarrierScheduleQueryController {
|
||||
}
|
||||
|
||||
@GetMapping("/{queryId}/history")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule-query:view')")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule-query:list')")
|
||||
public ApiResponse<List<CarrierScheduleQueryHistoryEntity>> history(
|
||||
@AuthenticationPrincipal AuthenticatedUser user, @PathVariable @Positive long queryId) {
|
||||
FirstlegScopeGuard.platform(user, service.customerId(queryId));
|
||||
|
||||
+2
-2
@@ -47,7 +47,7 @@ public class PlatformPortScheduleController {
|
||||
}
|
||||
|
||||
@GetMapping("/{portScheduleId}")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule:view')")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule:list')")
|
||||
public ApiResponse<Detail> detail(@AuthenticationPrincipal AuthenticatedUser user,
|
||||
@PathVariable @Positive long portScheduleId) {
|
||||
FirstlegScopeGuard.platform(user);
|
||||
@@ -55,7 +55,7 @@ public class PlatformPortScheduleController {
|
||||
}
|
||||
|
||||
@GetMapping("/{portScheduleId}/history")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule:view')")
|
||||
@PreAuthorize("hasAuthority('platform:firstleg:port-schedule:list')")
|
||||
public ApiResponse<List<PortScheduleHistoryEntity>> history(@AuthenticationPrincipal AuthenticatedUser user,
|
||||
@PathVariable @Positive long portScheduleId) {
|
||||
FirstlegScopeGuard.platform(user);
|
||||
|
||||
Reference in New Issue
Block a user