Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
222 lines
6.4 KiB
Java
222 lines
6.4 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 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;
|
|
|
|
/**
|
|
* MetaSchemaPublishRequest
|
|
*/
|
|
|
|
@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 MetaSchemaPublishRequest implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String commandId;
|
|
|
|
private String reason;
|
|
|
|
private @Nullable Integer expectedVersion;
|
|
|
|
private @Nullable String validationResultId;
|
|
|
|
private @Nullable String impactPreviewId;
|
|
|
|
private Boolean autoActivate = false;
|
|
|
|
public MetaSchemaPublishRequest() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* Constructor with only required parameters
|
|
*/
|
|
public MetaSchemaPublishRequest(String commandId, String reason) {
|
|
this.commandId = commandId;
|
|
this.reason = reason;
|
|
}
|
|
|
|
public MetaSchemaPublishRequest 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 MetaSchemaPublishRequest reason(String reason) {
|
|
this.reason = reason;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 发布理由
|
|
* @return reason
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "reason", description = "发布理由", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("reason")
|
|
public String getReason() {
|
|
return reason;
|
|
}
|
|
|
|
@JsonProperty("reason")
|
|
public void setReason(String reason) {
|
|
this.reason = reason;
|
|
}
|
|
|
|
public MetaSchemaPublishRequest expectedVersion(@Nullable Integer expectedVersion) {
|
|
this.expectedVersion = expectedVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 期望当前版本,乐观锁
|
|
* @return expectedVersion
|
|
*/
|
|
|
|
@Schema(name = "expectedVersion", description = "期望当前版本,乐观锁", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("expectedVersion")
|
|
public @Nullable Integer getExpectedVersion() {
|
|
return expectedVersion;
|
|
}
|
|
|
|
@JsonProperty("expectedVersion")
|
|
public void setExpectedVersion(@Nullable Integer expectedVersion) {
|
|
this.expectedVersion = expectedVersion;
|
|
}
|
|
|
|
public MetaSchemaPublishRequest validationResultId(@Nullable String validationResultId) {
|
|
this.validationResultId = validationResultId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 校验结果引用 ID
|
|
* @return validationResultId
|
|
*/
|
|
|
|
@Schema(name = "validationResultId", description = "校验结果引用 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("validationResultId")
|
|
public @Nullable String getValidationResultId() {
|
|
return validationResultId;
|
|
}
|
|
|
|
@JsonProperty("validationResultId")
|
|
public void setValidationResultId(@Nullable String validationResultId) {
|
|
this.validationResultId = validationResultId;
|
|
}
|
|
|
|
public MetaSchemaPublishRequest impactPreviewId(@Nullable String impactPreviewId) {
|
|
this.impactPreviewId = impactPreviewId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 影响预览引用 ID
|
|
* @return impactPreviewId
|
|
*/
|
|
|
|
@Schema(name = "impactPreviewId", description = "影响预览引用 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("impactPreviewId")
|
|
public @Nullable String getImpactPreviewId() {
|
|
return impactPreviewId;
|
|
}
|
|
|
|
@JsonProperty("impactPreviewId")
|
|
public void setImpactPreviewId(@Nullable String impactPreviewId) {
|
|
this.impactPreviewId = impactPreviewId;
|
|
}
|
|
|
|
public MetaSchemaPublishRequest autoActivate(Boolean autoActivate) {
|
|
this.autoActivate = autoActivate;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 发布后是否自动激活
|
|
* @return autoActivate
|
|
*/
|
|
|
|
@Schema(name = "autoActivate", description = "发布后是否自动激活", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("autoActivate")
|
|
public Boolean getAutoActivate() {
|
|
return autoActivate;
|
|
}
|
|
|
|
@JsonProperty("autoActivate")
|
|
public void setAutoActivate(Boolean autoActivate) {
|
|
this.autoActivate = autoActivate;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
MetaSchemaPublishRequest metaSchemaPublishRequest = (MetaSchemaPublishRequest) o;
|
|
return Objects.equals(this.commandId, metaSchemaPublishRequest.commandId) &&
|
|
Objects.equals(this.reason, metaSchemaPublishRequest.reason) &&
|
|
Objects.equals(this.expectedVersion, metaSchemaPublishRequest.expectedVersion) &&
|
|
Objects.equals(this.validationResultId, metaSchemaPublishRequest.validationResultId) &&
|
|
Objects.equals(this.impactPreviewId, metaSchemaPublishRequest.impactPreviewId) &&
|
|
Objects.equals(this.autoActivate, metaSchemaPublishRequest.autoActivate);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(commandId, reason, expectedVersion, validationResultId, impactPreviewId, autoActivate);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class MetaSchemaPublishRequest {\n");
|
|
sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n");
|
|
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
|
|
sb.append(" expectedVersion: ").append(toIndentedString(expectedVersion)).append("\n");
|
|
sb.append(" validationResultId: ").append(toIndentedString(validationResultId)).append("\n");
|
|
sb.append(" impactPreviewId: ").append(toIndentedString(impactPreviewId)).append("\n");
|
|
sb.append(" autoActivate: ").append(toIndentedString(autoActivate)).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 ");
|
|
}
|
|
}
|
|
|