358 lines
9.1 KiB
Java
358 lines
9.1 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 com.fasterxml.jackson.annotation.JsonValue;
|
|
import java.math.BigDecimal;
|
|
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;
|
|
|
|
/**
|
|
* AI Orchestration owner 提供给 Content/Work 的规划候选投影摘要
|
|
*/
|
|
|
|
@Schema(name = "PlanningCandidateSummary", description = "AI Orchestration owner 提供给 Content/Work 的规划候选投影摘要")
|
|
@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 PlanningCandidateSummary implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private UUID id;
|
|
|
|
private String sectionKey;
|
|
|
|
/**
|
|
* Gets or Sets taskType
|
|
*/
|
|
public enum TaskTypeEnum {
|
|
GENERATE("generate"),
|
|
|
|
SUPPLEMENT("supplement"),
|
|
|
|
ORGANIZE("organize"),
|
|
|
|
MULTI_OPTION("multi_option");
|
|
|
|
private final String value;
|
|
|
|
TaskTypeEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static TaskTypeEnum fromValue(String value) {
|
|
for (TaskTypeEnum b : TaskTypeEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private @Nullable TaskTypeEnum taskType;
|
|
|
|
/**
|
|
* Gets or Sets status
|
|
*/
|
|
public enum StatusEnum {
|
|
PENDING("pending"),
|
|
|
|
CONFIRMED("confirmed"),
|
|
|
|
DISCARDED("discarded");
|
|
|
|
private final String value;
|
|
|
|
StatusEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static StatusEnum fromValue(String value) {
|
|
for (StatusEnum b : StatusEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private StatusEnum status;
|
|
|
|
private @Nullable Integer revision;
|
|
|
|
private @Nullable BigDecimal qualityScore;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private OffsetDateTime createdAt;
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime confirmedAt;
|
|
|
|
public PlanningCandidateSummary() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* Constructor with only required parameters
|
|
*/
|
|
public PlanningCandidateSummary(UUID id, String sectionKey, StatusEnum status, OffsetDateTime createdAt) {
|
|
this.id = id;
|
|
this.sectionKey = sectionKey;
|
|
this.status = status;
|
|
this.createdAt = createdAt;
|
|
}
|
|
|
|
public PlanningCandidateSummary id(UUID id) {
|
|
this.id = id;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get id
|
|
* @return id
|
|
*/
|
|
@NotNull @Valid
|
|
@Schema(name = "id", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("id")
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
|
|
@JsonProperty("id")
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public PlanningCandidateSummary sectionKey(String sectionKey) {
|
|
this.sectionKey = sectionKey;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get sectionKey
|
|
* @return sectionKey
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "sectionKey", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("sectionKey")
|
|
public String getSectionKey() {
|
|
return sectionKey;
|
|
}
|
|
|
|
@JsonProperty("sectionKey")
|
|
public void setSectionKey(String sectionKey) {
|
|
this.sectionKey = sectionKey;
|
|
}
|
|
|
|
public PlanningCandidateSummary taskType(@Nullable TaskTypeEnum taskType) {
|
|
this.taskType = taskType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get taskType
|
|
* @return taskType
|
|
*/
|
|
|
|
@Schema(name = "taskType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("taskType")
|
|
public @Nullable TaskTypeEnum getTaskType() {
|
|
return taskType;
|
|
}
|
|
|
|
@JsonProperty("taskType")
|
|
public void setTaskType(@Nullable TaskTypeEnum taskType) {
|
|
this.taskType = taskType;
|
|
}
|
|
|
|
public PlanningCandidateSummary status(StatusEnum status) {
|
|
this.status = status;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get status
|
|
* @return status
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "status", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("status")
|
|
public StatusEnum getStatus() {
|
|
return status;
|
|
}
|
|
|
|
@JsonProperty("status")
|
|
public void setStatus(StatusEnum status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public PlanningCandidateSummary revision(@Nullable Integer revision) {
|
|
this.revision = revision;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get revision
|
|
* @return revision
|
|
*/
|
|
|
|
@Schema(name = "revision", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("revision")
|
|
public @Nullable Integer getRevision() {
|
|
return revision;
|
|
}
|
|
|
|
@JsonProperty("revision")
|
|
public void setRevision(@Nullable Integer revision) {
|
|
this.revision = revision;
|
|
}
|
|
|
|
public PlanningCandidateSummary qualityScore(@Nullable BigDecimal qualityScore) {
|
|
this.qualityScore = qualityScore;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 质量评分
|
|
* @return qualityScore
|
|
*/
|
|
@Valid
|
|
@Schema(name = "qualityScore", description = "质量评分", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("qualityScore")
|
|
public @Nullable BigDecimal getQualityScore() {
|
|
return qualityScore;
|
|
}
|
|
|
|
@JsonProperty("qualityScore")
|
|
public void setQualityScore(@Nullable BigDecimal qualityScore) {
|
|
this.qualityScore = qualityScore;
|
|
}
|
|
|
|
public PlanningCandidateSummary createdAt(OffsetDateTime createdAt) {
|
|
this.createdAt = createdAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get createdAt
|
|
* @return createdAt
|
|
*/
|
|
@NotNull @Valid
|
|
@Schema(name = "createdAt", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("createdAt")
|
|
public OffsetDateTime getCreatedAt() {
|
|
return createdAt;
|
|
}
|
|
|
|
@JsonProperty("createdAt")
|
|
public void setCreatedAt(OffsetDateTime createdAt) {
|
|
this.createdAt = createdAt;
|
|
}
|
|
|
|
public PlanningCandidateSummary confirmedAt(@Nullable OffsetDateTime confirmedAt) {
|
|
this.confirmedAt = confirmedAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get confirmedAt
|
|
* @return confirmedAt
|
|
*/
|
|
@Valid
|
|
@Schema(name = "confirmedAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("confirmedAt")
|
|
public @Nullable OffsetDateTime getConfirmedAt() {
|
|
return confirmedAt;
|
|
}
|
|
|
|
@JsonProperty("confirmedAt")
|
|
public void setConfirmedAt(@Nullable OffsetDateTime confirmedAt) {
|
|
this.confirmedAt = confirmedAt;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
PlanningCandidateSummary planningCandidateSummary = (PlanningCandidateSummary) o;
|
|
return Objects.equals(this.id, planningCandidateSummary.id) &&
|
|
Objects.equals(this.sectionKey, planningCandidateSummary.sectionKey) &&
|
|
Objects.equals(this.taskType, planningCandidateSummary.taskType) &&
|
|
Objects.equals(this.status, planningCandidateSummary.status) &&
|
|
Objects.equals(this.revision, planningCandidateSummary.revision) &&
|
|
Objects.equals(this.qualityScore, planningCandidateSummary.qualityScore) &&
|
|
Objects.equals(this.createdAt, planningCandidateSummary.createdAt) &&
|
|
Objects.equals(this.confirmedAt, planningCandidateSummary.confirmedAt);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(id, sectionKey, taskType, status, revision, qualityScore, createdAt, confirmedAt);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class PlanningCandidateSummary {\n");
|
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
|
sb.append(" sectionKey: ").append(toIndentedString(sectionKey)).append("\n");
|
|
sb.append(" taskType: ").append(toIndentedString(taskType)).append("\n");
|
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
sb.append(" revision: ").append(toIndentedString(revision)).append("\n");
|
|
sb.append(" qualityScore: ").append(toIndentedString(qualityScore)).append("\n");
|
|
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
|
sb.append(" confirmedAt: ").append(toIndentedString(confirmedAt)).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 ");
|
|
}
|
|
}
|
|
|