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;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* В рексевте необходим интерфейс WithId
|
||||||
|
*/
|
||||||
public class PresentById implements IValidationRule<ImdgValidationContext<WithId>> {
|
public class PresentById implements IValidationRule<ImdgValidationContext<WithId>> {
|
||||||
private final String mapName;
|
private final String mapName;
|
||||||
private final IErrorEnumId errorEnum;
|
private final IErrorEnumId errorEnum;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
package ru.spcex.clearing.platform.messaging.domain.cud.securitites;
|
package ru.spcex.clearing.platform.messaging.domain.cud.securitites;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import ru.spcex.platform.classes.base.interfaces.WithId;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
public class ListingUpdateRequest {
|
public class ListingUpdateRequest implements WithId {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private Long id;
|
private Long id;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
|
@ -18,6 +19,7 @@ public class ListingUpdateRequest {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String workflowStatus;
|
private String workflowStatus;
|
||||||
|
|
||||||
|
@Override
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue