优化
This commit is contained in:
+3
-3
@@ -67,7 +67,7 @@ public class PlatformContainerController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/{id}/clearance")
|
@GetMapping("/{id}/clearance")
|
||||||
@PreAuthorize("hasAuthority('platform:firstleg:container:view')")
|
@PreAuthorize("hasAuthority('platform:firstleg:customs:manage')")
|
||||||
@Operation(summary = "查询货柜目的港清关资料")
|
@Operation(summary = "查询货柜目的港清关资料")
|
||||||
public ApiResponse<BusinessDocument> clearance(@AuthenticationPrincipal AuthenticatedUser user,
|
public ApiResponse<BusinessDocument> clearance(@AuthenticationPrincipal AuthenticatedUser user,
|
||||||
@PathVariable @Positive long id) {
|
@PathVariable @Positive long id) {
|
||||||
@@ -76,7 +76,7 @@ public class PlatformContainerController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/{id}/clearance/document")
|
@PostMapping("/{id}/clearance/document")
|
||||||
@PreAuthorize("hasAuthority('platform:firstleg:container:edit')")
|
@PreAuthorize("hasAuthority('platform:firstleg:customs:manage')")
|
||||||
@Operation(summary = "上传或替换货柜目的港清关资料")
|
@Operation(summary = "上传或替换货柜目的港清关资料")
|
||||||
public ApiResponse<BusinessDocument> attachClearance(@AuthenticationPrincipal AuthenticatedUser user,
|
public ApiResponse<BusinessDocument> attachClearance(@AuthenticationPrincipal AuthenticatedUser user,
|
||||||
@PathVariable @Positive long id,
|
@PathVariable @Positive long id,
|
||||||
@@ -88,7 +88,7 @@ public class PlatformContainerController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/{id}/clearance/complete")
|
@PostMapping("/{id}/clearance/complete")
|
||||||
@PreAuthorize("hasAuthority('platform:firstleg:container:edit')")
|
@PreAuthorize("hasAuthority('platform:firstleg:customs:manage')")
|
||||||
@Operation(summary = "确认货柜目的港清关完成")
|
@Operation(summary = "确认货柜目的港清关完成")
|
||||||
public ApiResponse<BusinessDocument> completeClearance(@AuthenticationPrincipal AuthenticatedUser user,
|
public ApiResponse<BusinessDocument> completeClearance(@AuthenticationPrincipal AuthenticatedUser user,
|
||||||
@PathVariable @Positive long id,
|
@PathVariable @Positive long id,
|
||||||
|
|||||||
@@ -246,11 +246,13 @@ paths:
|
|||||||
/api/platform/v1/containers/{id}/clearance:
|
/api/platform/v1/containers/{id}/clearance:
|
||||||
get:
|
get:
|
||||||
summary: 查询货柜目的港清关资料
|
summary: 查询货柜目的港清关资料
|
||||||
|
description: 需要 platform:firstleg:customs:manage 权限
|
||||||
parameters: [{$ref: '#/components/parameters/ContainerBookingId'}]
|
parameters: [{$ref: '#/components/parameters/ContainerBookingId'}]
|
||||||
responses: {'200': {description: 成功或货柜不存在}}
|
responses: {'200': {description: 成功或货柜不存在}}
|
||||||
/api/platform/v1/containers/{id}/clearance/document:
|
/api/platform/v1/containers/{id}/clearance/document:
|
||||||
post:
|
post:
|
||||||
summary: 上传或替换货柜目的港清关资料
|
summary: 上传或替换货柜目的港清关资料
|
||||||
|
description: 需要 platform:firstleg:customs:manage 权限,fileId 必须严格绑定当前货柜
|
||||||
parameters: [{$ref: '#/components/parameters/ContainerBookingId'}, {$ref: '#/components/parameters/IdempotencyKey'}]
|
parameters: [{$ref: '#/components/parameters/ContainerBookingId'}, {$ref: '#/components/parameters/IdempotencyKey'}]
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
@@ -259,6 +261,7 @@ paths:
|
|||||||
/api/platform/v1/containers/{id}/clearance/complete:
|
/api/platform/v1/containers/{id}/clearance/complete:
|
||||||
post:
|
post:
|
||||||
summary: 点击完成目的港清关
|
summary: 点击完成目的港清关
|
||||||
|
description: 需要 platform:firstleg:customs:manage 权限
|
||||||
parameters: [{$ref: '#/components/parameters/ContainerBookingId'}, {$ref: '#/components/parameters/IdempotencyKey'}]
|
parameters: [{$ref: '#/components/parameters/ContainerBookingId'}, {$ref: '#/components/parameters/IdempotencyKey'}]
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
Reference in New Issue
Block a user