backend-api meta валидация Listing*Action 2
This commit is contained in:
parent
131c32978c
commit
283e623f19
2 changed files with 6 additions and 1 deletions
|
|
@ -10,6 +10,9 @@ import ru.spcex.platform.utils.validation.IValidationRule;
|
|||
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* В рексевте необходим интерфейс WithId
|
||||
*/
|
||||
public class PresentById implements IValidationRule<ImdgValidationContext<WithId>> {
|
||||
private final String mapName;
|
||||
private final IErrorEnumId errorEnum;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
package ru.spcex.clearing.platform.messaging.domain.cud.securitites;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import ru.spcex.platform.classes.base.interfaces.WithId;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class ListingUpdateRequest {
|
||||
public class ListingUpdateRequest implements WithId {
|
||||
@JsonProperty
|
||||
private Long id;
|
||||
@JsonProperty
|
||||
|
|
@ -18,6 +19,7 @@ public class ListingUpdateRequest {
|
|||
@JsonProperty
|
||||
private String workflowStatus;
|
||||
|
||||
@Override
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue