oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/GetEntity200ResponseAllOfDataRelationsInner.java
zizi 10d1f97d3f feat(api): 全量补齐 6 模块 OpenAPI 契约(229 接口)+ 重新生成类型
Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229
修复 Knowledge YAML 重复 key
重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
2026-05-24 15:06:11 +08:00

187 lines
5.7 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.JsonTypeName;
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;
/**
* GetEntity200ResponseAllOfDataRelationsInner
*/
@JsonTypeName("getEntity_200_response_allOf_data_relations_inner")
@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 GetEntity200ResponseAllOfDataRelationsInner implements Serializable {
private static final long serialVersionUID = 1L;
private @Nullable String relationId;
private @Nullable String targetEntityId;
private @Nullable String targetEntityName;
private @Nullable String relationType;
private @Nullable String description;
public GetEntity200ResponseAllOfDataRelationsInner relationId(@Nullable String relationId) {
this.relationId = relationId;
return this;
}
/**
* Get relationId
* @return relationId
*/
@Schema(name = "relationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("relationId")
public @Nullable String getRelationId() {
return relationId;
}
@JsonProperty("relationId")
public void setRelationId(@Nullable String relationId) {
this.relationId = relationId;
}
public GetEntity200ResponseAllOfDataRelationsInner targetEntityId(@Nullable String targetEntityId) {
this.targetEntityId = targetEntityId;
return this;
}
/**
* Get targetEntityId
* @return targetEntityId
*/
@Schema(name = "targetEntityId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("targetEntityId")
public @Nullable String getTargetEntityId() {
return targetEntityId;
}
@JsonProperty("targetEntityId")
public void setTargetEntityId(@Nullable String targetEntityId) {
this.targetEntityId = targetEntityId;
}
public GetEntity200ResponseAllOfDataRelationsInner targetEntityName(@Nullable String targetEntityName) {
this.targetEntityName = targetEntityName;
return this;
}
/**
* Get targetEntityName
* @return targetEntityName
*/
@Schema(name = "targetEntityName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("targetEntityName")
public @Nullable String getTargetEntityName() {
return targetEntityName;
}
@JsonProperty("targetEntityName")
public void setTargetEntityName(@Nullable String targetEntityName) {
this.targetEntityName = targetEntityName;
}
public GetEntity200ResponseAllOfDataRelationsInner relationType(@Nullable String relationType) {
this.relationType = relationType;
return this;
}
/**
* Get relationType
* @return relationType
*/
@Schema(name = "relationType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("relationType")
public @Nullable String getRelationType() {
return relationType;
}
@JsonProperty("relationType")
public void setRelationType(@Nullable String relationType) {
this.relationType = relationType;
}
public GetEntity200ResponseAllOfDataRelationsInner description(@Nullable String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
*/
@Schema(name = "description", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("description")
public @Nullable String getDescription() {
return description;
}
@JsonProperty("description")
public void setDescription(@Nullable String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetEntity200ResponseAllOfDataRelationsInner getEntity200ResponseAllOfDataRelationsInner = (GetEntity200ResponseAllOfDataRelationsInner) o;
return Objects.equals(this.relationId, getEntity200ResponseAllOfDataRelationsInner.relationId) &&
Objects.equals(this.targetEntityId, getEntity200ResponseAllOfDataRelationsInner.targetEntityId) &&
Objects.equals(this.targetEntityName, getEntity200ResponseAllOfDataRelationsInner.targetEntityName) &&
Objects.equals(this.relationType, getEntity200ResponseAllOfDataRelationsInner.relationType) &&
Objects.equals(this.description, getEntity200ResponseAllOfDataRelationsInner.description);
}
@Override
public int hashCode() {
return Objects.hash(relationId, targetEntityId, targetEntityName, relationType, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetEntity200ResponseAllOfDataRelationsInner {\n");
sb.append(" relationId: ").append(toIndentedString(relationId)).append("\n");
sb.append(" targetEntityId: ").append(toIndentedString(targetEntityId)).append("\n");
sb.append(" targetEntityName: ").append(toIndentedString(targetEntityName)).append("\n");
sb.append(" relationType: ").append(toIndentedString(relationType)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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 ");
}
}