oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/BatchConfirmChaptersRequest.java

136 lines
3.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.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;
/**
* 批量确认章节解析结果投影请求Content 只传递导入上下文和用户决策。
*/
@Schema(name = "BatchConfirmChaptersRequest", description = "批量确认章节解析结果投影请求Content 只传递导入上下文和用户决策。")
@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 BatchConfirmChaptersRequest implements Serializable {
private static final long serialVersionUID = 1L;
private String commandId;
@Valid
private List<UUID> resultIds = new ArrayList<>();
public BatchConfirmChaptersRequest() {
super();
}
/**
* Constructor with only required parameters
*/
public BatchConfirmChaptersRequest(String commandId, List<UUID> resultIds) {
this.commandId = commandId;
this.resultIds = resultIds;
}
public BatchConfirmChaptersRequest commandId(String commandId) {
this.commandId = commandId;
return this;
}
/**
* 幂等键
* @return commandId
*/
@NotNull
@Schema(name = "commandId", description = "幂等键", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("commandId")
public String getCommandId() {
return commandId;
}
@JsonProperty("commandId")
public void setCommandId(String commandId) {
this.commandId = commandId;
}
public BatchConfirmChaptersRequest resultIds(List<UUID> resultIds) {
this.resultIds = resultIds;
return this;
}
public BatchConfirmChaptersRequest addResultIdsItem(UUID resultIdsItem) {
if (this.resultIds == null) {
this.resultIds = new ArrayList<>();
}
this.resultIds.add(resultIdsItem);
return this;
}
/**
* 待确认的 chapter parse result ID 列表
* @return resultIds
*/
@NotNull @Valid
@Schema(name = "resultIds", description = "待确认的 chapter parse result ID 列表", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("resultIds")
public List<UUID> getResultIds() {
return resultIds;
}
@JsonProperty("resultIds")
public void setResultIds(List<UUID> resultIds) {
this.resultIds = resultIds;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchConfirmChaptersRequest batchConfirmChaptersRequest = (BatchConfirmChaptersRequest) o;
return Objects.equals(this.commandId, batchConfirmChaptersRequest.commandId) &&
Objects.equals(this.resultIds, batchConfirmChaptersRequest.resultIds);
}
@Override
public int hashCode() {
return Objects.hash(commandId, resultIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchConfirmChaptersRequest {\n");
sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n");
sb.append(" resultIds: ").append(toIndentedString(resultIds)).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 ");
}
}