platform-messaging - добавил некоторые требуемые поля

This commit is contained in:
AKurakin 2023-04-03 21:08:25 +03:00
parent 2032c156a8
commit 536df6a156
2 changed files with 36 additions and 0 deletions

View file

@ -20,6 +20,12 @@ public class BaseRequest<T> implements WithId {
@JsonProperty
private T requestPayload;
/**
* ID пользователя, приславшего запрос.
*/
@JsonProperty
private Long userId;
@Override
public Long getId() {
return id;
@ -44,4 +50,12 @@ public class BaseRequest<T> implements WithId {
public void setRequestPayload(T requestPayload) {
this.requestPayload = (T) requestPayload;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
}

View file

@ -14,6 +14,12 @@ public class CompanyNewRequest {
@JsonProperty
private String registrationCode;
// for update, todo разобраться, это тот же тип запроса или надо отдельный на update сделать?
@JsonProperty
private Long id;
@JsonProperty
private String workflowStatus;
public String getShortName() {
return shortName;
}
@ -53,4 +59,20 @@ public class CompanyNewRequest {
public void setRegistrationCode(String registrationCode) {
this.registrationCode = registrationCode;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getWorkflowStatus() {
return workflowStatus;
}
public void setWorkflowStatus(String workflowStatus) {
this.workflowStatus = workflowStatus;
}
}