Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
261 lines
8.6 KiB
Java
261 lines
8.6 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;
|
|
|
|
/**
|
|
* 知识库资产可信信息
|
|
*/
|
|
|
|
@Schema(name = "KnowledgeBaseAssetInfo", 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 KnowledgeBaseAssetInfo implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String materialScopeSummary;
|
|
|
|
private @Nullable String processingStatus;
|
|
|
|
private @Nullable Boolean searchable;
|
|
|
|
private @Nullable Boolean generatable;
|
|
|
|
private @Nullable Boolean allowedInModelContext;
|
|
|
|
private @Nullable String outboundScope;
|
|
|
|
private @Nullable Boolean versionPinningAvailable;
|
|
|
|
private @Nullable Boolean sourceDelistedOrRevoked;
|
|
|
|
public KnowledgeBaseAssetInfo materialScopeSummary(@Nullable String materialScopeSummary) {
|
|
this.materialScopeSummary = materialScopeSummary;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 资料范围摘要
|
|
* @return materialScopeSummary
|
|
*/
|
|
|
|
@Schema(name = "materialScopeSummary", description = "资料范围摘要", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("materialScopeSummary")
|
|
public @Nullable String getMaterialScopeSummary() {
|
|
return materialScopeSummary;
|
|
}
|
|
|
|
@JsonProperty("materialScopeSummary")
|
|
public void setMaterialScopeSummary(@Nullable String materialScopeSummary) {
|
|
this.materialScopeSummary = materialScopeSummary;
|
|
}
|
|
|
|
public KnowledgeBaseAssetInfo processingStatus(@Nullable String processingStatus) {
|
|
this.processingStatus = processingStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 处理状态
|
|
* @return processingStatus
|
|
*/
|
|
|
|
@Schema(name = "processingStatus", description = "处理状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("processingStatus")
|
|
public @Nullable String getProcessingStatus() {
|
|
return processingStatus;
|
|
}
|
|
|
|
@JsonProperty("processingStatus")
|
|
public void setProcessingStatus(@Nullable String processingStatus) {
|
|
this.processingStatus = processingStatus;
|
|
}
|
|
|
|
public KnowledgeBaseAssetInfo searchable(@Nullable Boolean searchable) {
|
|
this.searchable = searchable;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 是否可检索
|
|
* @return searchable
|
|
*/
|
|
|
|
@Schema(name = "searchable", description = "是否可检索", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("searchable")
|
|
public @Nullable Boolean getSearchable() {
|
|
return searchable;
|
|
}
|
|
|
|
@JsonProperty("searchable")
|
|
public void setSearchable(@Nullable Boolean searchable) {
|
|
this.searchable = searchable;
|
|
}
|
|
|
|
public KnowledgeBaseAssetInfo generatable(@Nullable Boolean generatable) {
|
|
this.generatable = generatable;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 是否可生成
|
|
* @return generatable
|
|
*/
|
|
|
|
@Schema(name = "generatable", description = "是否可生成", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("generatable")
|
|
public @Nullable Boolean getGeneratable() {
|
|
return generatable;
|
|
}
|
|
|
|
@JsonProperty("generatable")
|
|
public void setGeneratable(@Nullable Boolean generatable) {
|
|
this.generatable = generatable;
|
|
}
|
|
|
|
public KnowledgeBaseAssetInfo allowedInModelContext(@Nullable Boolean allowedInModelContext) {
|
|
this.allowedInModelContext = allowedInModelContext;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 是否允许进入模型上下文
|
|
* @return allowedInModelContext
|
|
*/
|
|
|
|
@Schema(name = "allowedInModelContext", description = "是否允许进入模型上下文", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("allowedInModelContext")
|
|
public @Nullable Boolean getAllowedInModelContext() {
|
|
return allowedInModelContext;
|
|
}
|
|
|
|
@JsonProperty("allowedInModelContext")
|
|
public void setAllowedInModelContext(@Nullable Boolean allowedInModelContext) {
|
|
this.allowedInModelContext = allowedInModelContext;
|
|
}
|
|
|
|
public KnowledgeBaseAssetInfo outboundScope(@Nullable String outboundScope) {
|
|
this.outboundScope = outboundScope;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 外发范围
|
|
* @return outboundScope
|
|
*/
|
|
|
|
@Schema(name = "outboundScope", description = "外发范围", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("outboundScope")
|
|
public @Nullable String getOutboundScope() {
|
|
return outboundScope;
|
|
}
|
|
|
|
@JsonProperty("outboundScope")
|
|
public void setOutboundScope(@Nullable String outboundScope) {
|
|
this.outboundScope = outboundScope;
|
|
}
|
|
|
|
public KnowledgeBaseAssetInfo versionPinningAvailable(@Nullable Boolean versionPinningAvailable) {
|
|
this.versionPinningAvailable = versionPinningAvailable;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 是否支持版本固定
|
|
* @return versionPinningAvailable
|
|
*/
|
|
|
|
@Schema(name = "versionPinningAvailable", description = "是否支持版本固定", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("versionPinningAvailable")
|
|
public @Nullable Boolean getVersionPinningAvailable() {
|
|
return versionPinningAvailable;
|
|
}
|
|
|
|
@JsonProperty("versionPinningAvailable")
|
|
public void setVersionPinningAvailable(@Nullable Boolean versionPinningAvailable) {
|
|
this.versionPinningAvailable = versionPinningAvailable;
|
|
}
|
|
|
|
public KnowledgeBaseAssetInfo sourceDelistedOrRevoked(@Nullable Boolean sourceDelistedOrRevoked) {
|
|
this.sourceDelistedOrRevoked = sourceDelistedOrRevoked;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 来源是否下架/撤权
|
|
* @return sourceDelistedOrRevoked
|
|
*/
|
|
|
|
@Schema(name = "sourceDelistedOrRevoked", description = "来源是否下架/撤权", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("sourceDelistedOrRevoked")
|
|
public @Nullable Boolean getSourceDelistedOrRevoked() {
|
|
return sourceDelistedOrRevoked;
|
|
}
|
|
|
|
@JsonProperty("sourceDelistedOrRevoked")
|
|
public void setSourceDelistedOrRevoked(@Nullable Boolean sourceDelistedOrRevoked) {
|
|
this.sourceDelistedOrRevoked = sourceDelistedOrRevoked;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
KnowledgeBaseAssetInfo knowledgeBaseAssetInfo = (KnowledgeBaseAssetInfo) o;
|
|
return Objects.equals(this.materialScopeSummary, knowledgeBaseAssetInfo.materialScopeSummary) &&
|
|
Objects.equals(this.processingStatus, knowledgeBaseAssetInfo.processingStatus) &&
|
|
Objects.equals(this.searchable, knowledgeBaseAssetInfo.searchable) &&
|
|
Objects.equals(this.generatable, knowledgeBaseAssetInfo.generatable) &&
|
|
Objects.equals(this.allowedInModelContext, knowledgeBaseAssetInfo.allowedInModelContext) &&
|
|
Objects.equals(this.outboundScope, knowledgeBaseAssetInfo.outboundScope) &&
|
|
Objects.equals(this.versionPinningAvailable, knowledgeBaseAssetInfo.versionPinningAvailable) &&
|
|
Objects.equals(this.sourceDelistedOrRevoked, knowledgeBaseAssetInfo.sourceDelistedOrRevoked);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(materialScopeSummary, processingStatus, searchable, generatable, allowedInModelContext, outboundScope, versionPinningAvailable, sourceDelistedOrRevoked);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class KnowledgeBaseAssetInfo {\n");
|
|
sb.append(" materialScopeSummary: ").append(toIndentedString(materialScopeSummary)).append("\n");
|
|
sb.append(" processingStatus: ").append(toIndentedString(processingStatus)).append("\n");
|
|
sb.append(" searchable: ").append(toIndentedString(searchable)).append("\n");
|
|
sb.append(" generatable: ").append(toIndentedString(generatable)).append("\n");
|
|
sb.append(" allowedInModelContext: ").append(toIndentedString(allowedInModelContext)).append("\n");
|
|
sb.append(" outboundScope: ").append(toIndentedString(outboundScope)).append("\n");
|
|
sb.append(" versionPinningAvailable: ").append(toIndentedString(versionPinningAvailable)).append("\n");
|
|
sb.append(" sourceDelistedOrRevoked: ").append(toIndentedString(sourceDelistedOrRevoked)).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 ");
|
|
}
|
|
}
|
|
|