165 lines
4.5 KiB
Java
165 lines
4.5 KiB
Java
package com.muse.dto;
|
|
|
|
import java.net.URI;
|
|
import java.util.Objects;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
import java.time.OffsetDateTime;
|
|
import java.util.UUID;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.lang.Nullable;
|
|
import java.io.Serializable;
|
|
import java.time.OffsetDateTime;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.*;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import java.util.*;
|
|
import jakarta.annotation.Generated;
|
|
|
|
/**
|
|
* 申诉处理历史条目
|
|
*/
|
|
|
|
@Schema(name = "AppealProcessingHistoryItem", description = "申诉处理历史条目")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class AppealProcessingHistoryItem implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String action;
|
|
|
|
private @Nullable UUID processorId;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime processedAt;
|
|
|
|
private @Nullable String reason;
|
|
|
|
public AppealProcessingHistoryItem action(@Nullable String action) {
|
|
this.action = action;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get action
|
|
* @return action
|
|
*/
|
|
|
|
@Schema(name = "action", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("action")
|
|
public @Nullable String getAction() {
|
|
return action;
|
|
}
|
|
|
|
@JsonProperty("action")
|
|
public void setAction(@Nullable String action) {
|
|
this.action = action;
|
|
}
|
|
|
|
public AppealProcessingHistoryItem processorId(@Nullable UUID processorId) {
|
|
this.processorId = processorId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get processorId
|
|
* @return processorId
|
|
*/
|
|
@Valid
|
|
@Schema(name = "processorId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("processorId")
|
|
public @Nullable UUID getProcessorId() {
|
|
return processorId;
|
|
}
|
|
|
|
@JsonProperty("processorId")
|
|
public void setProcessorId(@Nullable UUID processorId) {
|
|
this.processorId = processorId;
|
|
}
|
|
|
|
public AppealProcessingHistoryItem processedAt(@Nullable OffsetDateTime processedAt) {
|
|
this.processedAt = processedAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get processedAt
|
|
* @return processedAt
|
|
*/
|
|
@Valid
|
|
@Schema(name = "processedAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("processedAt")
|
|
public @Nullable OffsetDateTime getProcessedAt() {
|
|
return processedAt;
|
|
}
|
|
|
|
@JsonProperty("processedAt")
|
|
public void setProcessedAt(@Nullable OffsetDateTime processedAt) {
|
|
this.processedAt = processedAt;
|
|
}
|
|
|
|
public AppealProcessingHistoryItem reason(@Nullable String reason) {
|
|
this.reason = reason;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get reason
|
|
* @return reason
|
|
*/
|
|
|
|
@Schema(name = "reason", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("reason")
|
|
public @Nullable String getReason() {
|
|
return reason;
|
|
}
|
|
|
|
@JsonProperty("reason")
|
|
public void setReason(@Nullable String reason) {
|
|
this.reason = reason;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AppealProcessingHistoryItem appealProcessingHistoryItem = (AppealProcessingHistoryItem) o;
|
|
return Objects.equals(this.action, appealProcessingHistoryItem.action) &&
|
|
Objects.equals(this.processorId, appealProcessingHistoryItem.processorId) &&
|
|
Objects.equals(this.processedAt, appealProcessingHistoryItem.processedAt) &&
|
|
Objects.equals(this.reason, appealProcessingHistoryItem.reason);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(action, processorId, processedAt, reason);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AppealProcessingHistoryItem {\n");
|
|
sb.append(" action: ").append(toIndentedString(action)).append("\n");
|
|
sb.append(" processorId: ").append(toIndentedString(processorId)).append("\n");
|
|
sb.append(" processedAt: ").append(toIndentedString(processedAt)).append("\n");
|
|
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
|
|
sb.append("}");
|
|
return sb.toString();
|
|
}
|
|
|
|
/**
|
|
* Convert the given object to string with each line indented by 4 spaces
|
|
* (except the first line).
|
|
*/
|
|
private String toIndentedString(@Nullable Object o) {
|
|
return o == null ? "null" : o.toString().replace("\n", "\n ");
|
|
}
|
|
}
|
|
|