platform-messaging - добавил некоторые требуемые поля
This commit is contained in:
parent
2032c156a8
commit
536df6a156
2 changed files with 36 additions and 0 deletions
|
|
@ -20,6 +20,12 @@ public class BaseRequest<T> implements WithId {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private T requestPayload;
|
private T requestPayload;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID пользователя, приславшего запрос.
|
||||||
|
*/
|
||||||
|
@JsonProperty
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
|
|
@ -44,4 +50,12 @@ public class BaseRequest<T> implements WithId {
|
||||||
public void setRequestPayload(T requestPayload) {
|
public void setRequestPayload(T requestPayload) {
|
||||||
this.requestPayload = (T) requestPayload;
|
this.requestPayload = (T) requestPayload;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Long userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,12 @@ public class CompanyNewRequest {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String registrationCode;
|
private String registrationCode;
|
||||||
|
|
||||||
|
// for update, todo разобраться, это тот же тип запроса или надо отдельный на update сделать?
|
||||||
|
@JsonProperty
|
||||||
|
private Long id;
|
||||||
|
@JsonProperty
|
||||||
|
private String workflowStatus;
|
||||||
|
|
||||||
public String getShortName() {
|
public String getShortName() {
|
||||||
return shortName;
|
return shortName;
|
||||||
}
|
}
|
||||||
|
|
@ -53,4 +59,20 @@ public class CompanyNewRequest {
|
||||||
public void setRegistrationCode(String registrationCode) {
|
public void setRegistrationCode(String registrationCode) {
|
||||||
this.registrationCode = 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue