|
|
|
|
@ -25,13 +25,13 @@ import javax.validation.Valid;
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/api/v1/institution-identifiers/quota-control-bits")
|
|
|
|
|
@Tag(name = "步骤八:商业银行生成额度控制位")
|
|
|
|
|
@Tag(name = "货币生成的步骤八:商业银行生成额度控制位")
|
|
|
|
|
public class QuotaControlBitController {
|
|
|
|
|
@Resource private QuotaControlBitService service;
|
|
|
|
|
|
|
|
|
|
@PostMapping("/steps/static-segment")
|
|
|
|
|
@Operation(summary = "生成静态段",
|
|
|
|
|
description = "无需请求体。后端按当前JWT主体读取步骤七金额、机构标识和交易信息标识,计算SM3并仅返回staticSegment。")
|
|
|
|
|
description = "无需请求体。后端按当前JWT主体读取货币生成的步骤七金额、机构标识和交易信息标识,计算SM3并仅返回staticSegment。")
|
|
|
|
|
public ApiResponse<QuotaControlStaticSegmentResult> staticSegment() {
|
|
|
|
|
JwtUser user = AuthContextHolder.get();
|
|
|
|
|
return ApiResponse.success(service.staticSegment(
|
|
|
|
|
@ -49,7 +49,7 @@ public class QuotaControlBitController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/segments/static")
|
|
|
|
|
@Operation(summary = "查询静态段",
|
|
|
|
|
description = "按当前JWT实训主体查询已生成的步骤八静态段,仅返回staticSegment,不重新计算且不推进状态。")
|
|
|
|
|
description = "按当前JWT实训主体查询已生成的货币生成的步骤八静态段,仅返回staticSegment,不重新计算且不推进状态。")
|
|
|
|
|
public ApiResponse<QuotaControlStaticSegmentResult> queryStaticSegment() {
|
|
|
|
|
return ApiResponse.success(service.queryStaticSegment(
|
|
|
|
|
InstitutionKeySubject.from(AuthContextHolder.get())), traceId());
|
|
|
|
|
@ -57,14 +57,14 @@ public class QuotaControlBitController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/segments/dynamic")
|
|
|
|
|
@Operation(summary = "查询动态段",
|
|
|
|
|
description = "按当前JWT实训主体查询已生成的步骤八动态段,仅返回dynamicSegment,不重新生成且不推进状态。")
|
|
|
|
|
description = "按当前JWT实训主体查询已生成的货币生成的步骤八动态段,仅返回dynamicSegment,不重新生成且不推进状态。")
|
|
|
|
|
public ApiResponse<QuotaControlDynamicSegmentResult> queryDynamicSegment() {
|
|
|
|
|
return ApiResponse.success(service.queryDynamicSegment(
|
|
|
|
|
InstitutionKeySubject.from(AuthContextHolder.get())), traceId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/steps/read-central-bank-signature")
|
|
|
|
|
@Operation(summary = "读取步骤七央行控制系统签名段",
|
|
|
|
|
@Operation(summary = "读取货币生成的步骤七央行控制系统签名段",
|
|
|
|
|
description = "成功响应的data仅返回centralBankSignatureSegment。")
|
|
|
|
|
public ApiResponse<CentralBankSignatureSegmentResult> readCentralBankSignature() {
|
|
|
|
|
JwtUser user = AuthContextHolder.get();
|
|
|
|
|
@ -107,7 +107,7 @@ public class QuotaControlBitController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping
|
|
|
|
|
@Operation(summary = "查询步骤八商业银行端完整数据")
|
|
|
|
|
@Operation(summary = "查询货币生成的步骤八商业银行端完整数据")
|
|
|
|
|
public ApiResponse<QuotaControlBitResult> detail() {
|
|
|
|
|
return ApiResponse.success(service.detail(InstitutionKeySubject.from(AuthContextHolder.get())), traceId());
|
|
|
|
|
}
|
|
|
|
|
|