190 lines
5.2 KiB
Java
190 lines
5.2 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 = "AdminGovernanceHistoryItem", 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 AdminGovernanceHistoryItem implements Serializable {
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
private @Nullable String action;
|
||
|
||
private @Nullable String reason;
|
||
|
||
private @Nullable UUID operatorId;
|
||
|
||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||
private @Nullable OffsetDateTime operatedAt;
|
||
|
||
private @Nullable String scope;
|
||
|
||
public AdminGovernanceHistoryItem action(@Nullable String action) {
|
||
this.action = action;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* 治理动作(如 delist / recall / restore)
|
||
* @return action
|
||
*/
|
||
|
||
@Schema(name = "action", description = "治理动作(如 delist / recall / restore)", 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 AdminGovernanceHistoryItem 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;
|
||
}
|
||
|
||
public AdminGovernanceHistoryItem operatorId(@Nullable UUID operatorId) {
|
||
this.operatorId = operatorId;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Get operatorId
|
||
* @return operatorId
|
||
*/
|
||
@Valid
|
||
@Schema(name = "operatorId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("operatorId")
|
||
public @Nullable UUID getOperatorId() {
|
||
return operatorId;
|
||
}
|
||
|
||
@JsonProperty("operatorId")
|
||
public void setOperatorId(@Nullable UUID operatorId) {
|
||
this.operatorId = operatorId;
|
||
}
|
||
|
||
public AdminGovernanceHistoryItem operatedAt(@Nullable OffsetDateTime operatedAt) {
|
||
this.operatedAt = operatedAt;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Get operatedAt
|
||
* @return operatedAt
|
||
*/
|
||
@Valid
|
||
@Schema(name = "operatedAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("operatedAt")
|
||
public @Nullable OffsetDateTime getOperatedAt() {
|
||
return operatedAt;
|
||
}
|
||
|
||
@JsonProperty("operatedAt")
|
||
public void setOperatedAt(@Nullable OffsetDateTime operatedAt) {
|
||
this.operatedAt = operatedAt;
|
||
}
|
||
|
||
public AdminGovernanceHistoryItem scope(@Nullable String scope) {
|
||
this.scope = scope;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Get scope
|
||
* @return scope
|
||
*/
|
||
|
||
@Schema(name = "scope", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("scope")
|
||
public @Nullable String getScope() {
|
||
return scope;
|
||
}
|
||
|
||
@JsonProperty("scope")
|
||
public void setScope(@Nullable String scope) {
|
||
this.scope = scope;
|
||
}
|
||
|
||
@Override
|
||
public boolean equals(Object o) {
|
||
if (this == o) {
|
||
return true;
|
||
}
|
||
if (o == null || getClass() != o.getClass()) {
|
||
return false;
|
||
}
|
||
AdminGovernanceHistoryItem adminGovernanceHistoryItem = (AdminGovernanceHistoryItem) o;
|
||
return Objects.equals(this.action, adminGovernanceHistoryItem.action) &&
|
||
Objects.equals(this.reason, adminGovernanceHistoryItem.reason) &&
|
||
Objects.equals(this.operatorId, adminGovernanceHistoryItem.operatorId) &&
|
||
Objects.equals(this.operatedAt, adminGovernanceHistoryItem.operatedAt) &&
|
||
Objects.equals(this.scope, adminGovernanceHistoryItem.scope);
|
||
}
|
||
|
||
@Override
|
||
public int hashCode() {
|
||
return Objects.hash(action, reason, operatorId, operatedAt, scope);
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append("class AdminGovernanceHistoryItem {\n");
|
||
sb.append(" action: ").append(toIndentedString(action)).append("\n");
|
||
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
|
||
sb.append(" operatorId: ").append(toIndentedString(operatorId)).append("\n");
|
||
sb.append(" operatedAt: ").append(toIndentedString(operatedAt)).append("\n");
|
||
sb.append(" scope: ").append(toIndentedString(scope)).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 ");
|
||
}
|
||
}
|
||
|