Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
161 lines
3.9 KiB
Java
161 lines
3.9 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.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;
|
|
|
|
/**
|
|
* AffectedTask
|
|
*/
|
|
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T15:05:54.603829+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class AffectedTask implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable UUID taskId;
|
|
|
|
private @Nullable String taskType;
|
|
|
|
private @Nullable String status;
|
|
|
|
private @Nullable String impact;
|
|
|
|
public AffectedTask taskId(@Nullable UUID taskId) {
|
|
this.taskId = taskId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get taskId
|
|
* @return taskId
|
|
*/
|
|
@Valid
|
|
@Schema(name = "taskId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("taskId")
|
|
public @Nullable UUID getTaskId() {
|
|
return taskId;
|
|
}
|
|
|
|
@JsonProperty("taskId")
|
|
public void setTaskId(@Nullable UUID taskId) {
|
|
this.taskId = taskId;
|
|
}
|
|
|
|
public AffectedTask taskType(@Nullable String taskType) {
|
|
this.taskType = taskType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get taskType
|
|
* @return taskType
|
|
*/
|
|
|
|
@Schema(name = "taskType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("taskType")
|
|
public @Nullable String getTaskType() {
|
|
return taskType;
|
|
}
|
|
|
|
@JsonProperty("taskType")
|
|
public void setTaskType(@Nullable String taskType) {
|
|
this.taskType = taskType;
|
|
}
|
|
|
|
public AffectedTask status(@Nullable String status) {
|
|
this.status = status;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get status
|
|
* @return status
|
|
*/
|
|
|
|
@Schema(name = "status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("status")
|
|
public @Nullable String getStatus() {
|
|
return status;
|
|
}
|
|
|
|
@JsonProperty("status")
|
|
public void setStatus(@Nullable String status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public AffectedTask impact(@Nullable String impact) {
|
|
this.impact = impact;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get impact
|
|
* @return impact
|
|
*/
|
|
|
|
@Schema(name = "impact", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("impact")
|
|
public @Nullable String getImpact() {
|
|
return impact;
|
|
}
|
|
|
|
@JsonProperty("impact")
|
|
public void setImpact(@Nullable String impact) {
|
|
this.impact = impact;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AffectedTask affectedTask = (AffectedTask) o;
|
|
return Objects.equals(this.taskId, affectedTask.taskId) &&
|
|
Objects.equals(this.taskType, affectedTask.taskType) &&
|
|
Objects.equals(this.status, affectedTask.status) &&
|
|
Objects.equals(this.impact, affectedTask.impact);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(taskId, taskType, status, impact);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AffectedTask {\n");
|
|
sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n");
|
|
sb.append(" taskType: ").append(toIndentedString(taskType)).append("\n");
|
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
sb.append(" impact: ").append(toIndentedString(impact)).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 ");
|
|
}
|
|
}
|
|
|