Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
187 lines
5.8 KiB
Java
187 lines
5.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.DynamicFieldValidationRequestFieldsInner;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
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 = "DynamicFieldValidationRequest", description = "动态字段校验请求")
|
|
@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 DynamicFieldValidationRequest implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Valid
|
|
private List<@Valid DynamicFieldValidationRequestFieldsInner> fields = new ArrayList<>();
|
|
|
|
private Integer schemaVersion;
|
|
|
|
private Integer projectionVersion;
|
|
|
|
private @Nullable Integer dataRevision;
|
|
|
|
public DynamicFieldValidationRequest() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* Constructor with only required parameters
|
|
*/
|
|
public DynamicFieldValidationRequest(List<@Valid DynamicFieldValidationRequestFieldsInner> fields, Integer schemaVersion, Integer projectionVersion) {
|
|
this.fields = fields;
|
|
this.schemaVersion = schemaVersion;
|
|
this.projectionVersion = projectionVersion;
|
|
}
|
|
|
|
public DynamicFieldValidationRequest fields(List<@Valid DynamicFieldValidationRequestFieldsInner> fields) {
|
|
this.fields = fields;
|
|
return this;
|
|
}
|
|
|
|
public DynamicFieldValidationRequest addFieldsItem(DynamicFieldValidationRequestFieldsInner fieldsItem) {
|
|
if (this.fields == null) {
|
|
this.fields = new ArrayList<>();
|
|
}
|
|
this.fields.add(fieldsItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 待校验的动态字段数据
|
|
* @return fields
|
|
*/
|
|
@NotNull @Valid
|
|
@Schema(name = "fields", description = "待校验的动态字段数据", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("fields")
|
|
public List<@Valid DynamicFieldValidationRequestFieldsInner> getFields() {
|
|
return fields;
|
|
}
|
|
|
|
@JsonProperty("fields")
|
|
public void setFields(List<@Valid DynamicFieldValidationRequestFieldsInner> fields) {
|
|
this.fields = fields;
|
|
}
|
|
|
|
public DynamicFieldValidationRequest schemaVersion(Integer schemaVersion) {
|
|
this.schemaVersion = schemaVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 调用方持有的 MetaSchema 版本
|
|
* @return schemaVersion
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "schemaVersion", description = "调用方持有的 MetaSchema 版本", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("schemaVersion")
|
|
public Integer getSchemaVersion() {
|
|
return schemaVersion;
|
|
}
|
|
|
|
@JsonProperty("schemaVersion")
|
|
public void setSchemaVersion(Integer schemaVersion) {
|
|
this.schemaVersion = schemaVersion;
|
|
}
|
|
|
|
public DynamicFieldValidationRequest projectionVersion(Integer projectionVersion) {
|
|
this.projectionVersion = projectionVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 调用方持有的投影版本
|
|
* @return projectionVersion
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "projectionVersion", description = "调用方持有的投影版本", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("projectionVersion")
|
|
public Integer getProjectionVersion() {
|
|
return projectionVersion;
|
|
}
|
|
|
|
@JsonProperty("projectionVersion")
|
|
public void setProjectionVersion(Integer projectionVersion) {
|
|
this.projectionVersion = projectionVersion;
|
|
}
|
|
|
|
public DynamicFieldValidationRequest dataRevision(@Nullable Integer dataRevision) {
|
|
this.dataRevision = dataRevision;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 调用方持有的数据 revision
|
|
* @return dataRevision
|
|
*/
|
|
|
|
@Schema(name = "dataRevision", description = "调用方持有的数据 revision", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("dataRevision")
|
|
public @Nullable Integer getDataRevision() {
|
|
return dataRevision;
|
|
}
|
|
|
|
@JsonProperty("dataRevision")
|
|
public void setDataRevision(@Nullable Integer dataRevision) {
|
|
this.dataRevision = dataRevision;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
DynamicFieldValidationRequest dynamicFieldValidationRequest = (DynamicFieldValidationRequest) o;
|
|
return Objects.equals(this.fields, dynamicFieldValidationRequest.fields) &&
|
|
Objects.equals(this.schemaVersion, dynamicFieldValidationRequest.schemaVersion) &&
|
|
Objects.equals(this.projectionVersion, dynamicFieldValidationRequest.projectionVersion) &&
|
|
Objects.equals(this.dataRevision, dynamicFieldValidationRequest.dataRevision);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(fields, schemaVersion, projectionVersion, dataRevision);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class DynamicFieldValidationRequest {\n");
|
|
sb.append(" fields: ").append(toIndentedString(fields)).append("\n");
|
|
sb.append(" schemaVersion: ").append(toIndentedString(schemaVersion)).append("\n");
|
|
sb.append(" projectionVersion: ").append(toIndentedString(projectionVersion)).append("\n");
|
|
sb.append(" dataRevision: ").append(toIndentedString(dataRevision)).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 ");
|
|
}
|
|
}
|
|
|