gateway-api временно убрал валидацию GatewayController
This commit is contained in:
parent
7a01ffc6c0
commit
c6d047a7ea
1 changed files with 3 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ public class GatewayController {
|
|||
)
|
||||
@ResponseBody
|
||||
public CommonResponse listingsFond(@RequestBody FondListingsRequest request) {
|
||||
request.validate(validTypes, List.of(Section.FOND));
|
||||
// request.validate(validTypes, List.of(Section.FOND));
|
||||
FondListingsRequestParam requestParam = new FondListingsRequestParam(request);
|
||||
ProcessResult processResult = fondListingsRequestProcessor.process(requestParam);
|
||||
if (processResult.getError() != null) throw new GatewayException(request, processResult.getError());
|
||||
|
|
@ -91,7 +91,7 @@ public class GatewayController {
|
|||
)
|
||||
@ResponseBody
|
||||
public CommonResponse listingsMM(@RequestBody MMListingsRequest request) {
|
||||
request.validate(validTypes, List.of(Section.MKR));
|
||||
// request.validate(validTypes, List.of(Section.MKR));
|
||||
MMListingsRequestParam requestParam = new MMListingsRequestParam(request);
|
||||
ProcessResult processResult = mmListingsRequestProcessor.process(requestParam);
|
||||
if (processResult.getError() != null) throw new GatewayException(request, processResult.getError());
|
||||
|
|
@ -112,7 +112,7 @@ public class GatewayController {
|
|||
)
|
||||
@ResponseBody
|
||||
public CommonResponse companies(@RequestBody CompaniesRequest request) {
|
||||
request.validate(validTypes, Collections.emptyList());
|
||||
// request.validate(validTypes, Collections.emptyList());
|
||||
CompaniesRequestParam requestParam = new CompaniesRequestParam(request);
|
||||
ProcessResult processResult = companiesRequestProcessor.process(requestParam);
|
||||
if (processResult.getError() != null) throw new GatewayException(request, processResult.getError());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue