228 lines
7.8 KiB
Java
228 lines
7.8 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.muse.dto.BatchConfirmChaptersResultFailedChaptersInner;
|
|
import com.muse.dto.BatchConfirmChaptersResultSkippedChaptersInner;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
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 = "BatchConfirmChaptersResult", 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 BatchConfirmChaptersResult implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Valid
|
|
private List<UUID> confirmedChapterResultIds = new ArrayList<>();
|
|
|
|
@Valid
|
|
private List<UUID> createdDraftIds = new ArrayList<>();
|
|
|
|
@Valid
|
|
private List<@Valid BatchConfirmChaptersResultFailedChaptersInner> failedChapters = new ArrayList<>();
|
|
|
|
@Valid
|
|
private List<@Valid BatchConfirmChaptersResultSkippedChaptersInner> skippedChapters = new ArrayList<>();
|
|
|
|
private @Nullable Boolean partialFailure;
|
|
|
|
public BatchConfirmChaptersResult confirmedChapterResultIds(List<UUID> confirmedChapterResultIds) {
|
|
this.confirmedChapterResultIds = confirmedChapterResultIds;
|
|
return this;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult addConfirmedChapterResultIdsItem(UUID confirmedChapterResultIdsItem) {
|
|
if (this.confirmedChapterResultIds == null) {
|
|
this.confirmedChapterResultIds = new ArrayList<>();
|
|
}
|
|
this.confirmedChapterResultIds.add(confirmedChapterResultIdsItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 成功确认的章节 result ID 列表
|
|
* @return confirmedChapterResultIds
|
|
*/
|
|
@Valid
|
|
@Schema(name = "confirmedChapterResultIds", description = "成功确认的章节 result ID 列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("confirmedChapterResultIds")
|
|
public List<UUID> getConfirmedChapterResultIds() {
|
|
return confirmedChapterResultIds;
|
|
}
|
|
|
|
@JsonProperty("confirmedChapterResultIds")
|
|
public void setConfirmedChapterResultIds(List<UUID> confirmedChapterResultIds) {
|
|
this.confirmedChapterResultIds = confirmedChapterResultIds;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult createdDraftIds(List<UUID> createdDraftIds) {
|
|
this.createdDraftIds = createdDraftIds;
|
|
return this;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult addCreatedDraftIdsItem(UUID createdDraftIdsItem) {
|
|
if (this.createdDraftIds == null) {
|
|
this.createdDraftIds = new ArrayList<>();
|
|
}
|
|
this.createdDraftIds.add(createdDraftIdsItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 生成的知识草稿 ID 列表
|
|
* @return createdDraftIds
|
|
*/
|
|
@Valid
|
|
@Schema(name = "createdDraftIds", description = "生成的知识草稿 ID 列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("createdDraftIds")
|
|
public List<UUID> getCreatedDraftIds() {
|
|
return createdDraftIds;
|
|
}
|
|
|
|
@JsonProperty("createdDraftIds")
|
|
public void setCreatedDraftIds(List<UUID> createdDraftIds) {
|
|
this.createdDraftIds = createdDraftIds;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult failedChapters(List<@Valid BatchConfirmChaptersResultFailedChaptersInner> failedChapters) {
|
|
this.failedChapters = failedChapters;
|
|
return this;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult addFailedChaptersItem(BatchConfirmChaptersResultFailedChaptersInner failedChaptersItem) {
|
|
if (this.failedChapters == null) {
|
|
this.failedChapters = new ArrayList<>();
|
|
}
|
|
this.failedChapters.add(failedChaptersItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 失败章节列表
|
|
* @return failedChapters
|
|
*/
|
|
@Valid
|
|
@Schema(name = "failedChapters", description = "失败章节列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("failedChapters")
|
|
public List<@Valid BatchConfirmChaptersResultFailedChaptersInner> getFailedChapters() {
|
|
return failedChapters;
|
|
}
|
|
|
|
@JsonProperty("failedChapters")
|
|
public void setFailedChapters(List<@Valid BatchConfirmChaptersResultFailedChaptersInner> failedChapters) {
|
|
this.failedChapters = failedChapters;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult skippedChapters(List<@Valid BatchConfirmChaptersResultSkippedChaptersInner> skippedChapters) {
|
|
this.skippedChapters = skippedChapters;
|
|
return this;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult addSkippedChaptersItem(BatchConfirmChaptersResultSkippedChaptersInner skippedChaptersItem) {
|
|
if (this.skippedChapters == null) {
|
|
this.skippedChapters = new ArrayList<>();
|
|
}
|
|
this.skippedChapters.add(skippedChaptersItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 跳过章节列表
|
|
* @return skippedChapters
|
|
*/
|
|
@Valid
|
|
@Schema(name = "skippedChapters", description = "跳过章节列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("skippedChapters")
|
|
public List<@Valid BatchConfirmChaptersResultSkippedChaptersInner> getSkippedChapters() {
|
|
return skippedChapters;
|
|
}
|
|
|
|
@JsonProperty("skippedChapters")
|
|
public void setSkippedChapters(List<@Valid BatchConfirmChaptersResultSkippedChaptersInner> skippedChapters) {
|
|
this.skippedChapters = skippedChapters;
|
|
}
|
|
|
|
public BatchConfirmChaptersResult partialFailure(@Nullable Boolean partialFailure) {
|
|
this.partialFailure = partialFailure;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 是否存在部分失败
|
|
* @return partialFailure
|
|
*/
|
|
|
|
@Schema(name = "partialFailure", description = "是否存在部分失败", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("partialFailure")
|
|
public @Nullable Boolean getPartialFailure() {
|
|
return partialFailure;
|
|
}
|
|
|
|
@JsonProperty("partialFailure")
|
|
public void setPartialFailure(@Nullable Boolean partialFailure) {
|
|
this.partialFailure = partialFailure;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
BatchConfirmChaptersResult batchConfirmChaptersResult = (BatchConfirmChaptersResult) o;
|
|
return Objects.equals(this.confirmedChapterResultIds, batchConfirmChaptersResult.confirmedChapterResultIds) &&
|
|
Objects.equals(this.createdDraftIds, batchConfirmChaptersResult.createdDraftIds) &&
|
|
Objects.equals(this.failedChapters, batchConfirmChaptersResult.failedChapters) &&
|
|
Objects.equals(this.skippedChapters, batchConfirmChaptersResult.skippedChapters) &&
|
|
Objects.equals(this.partialFailure, batchConfirmChaptersResult.partialFailure);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(confirmedChapterResultIds, createdDraftIds, failedChapters, skippedChapters, partialFailure);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class BatchConfirmChaptersResult {\n");
|
|
sb.append(" confirmedChapterResultIds: ").append(toIndentedString(confirmedChapterResultIds)).append("\n");
|
|
sb.append(" createdDraftIds: ").append(toIndentedString(createdDraftIds)).append("\n");
|
|
sb.append(" failedChapters: ").append(toIndentedString(failedChapters)).append("\n");
|
|
sb.append(" skippedChapters: ").append(toIndentedString(skippedChapters)).append("\n");
|
|
sb.append(" partialFailure: ").append(toIndentedString(partialFailure)).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 ");
|
|
}
|
|
}
|
|
|