Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
124 lines
3.3 KiB
Java
124 lines
3.3 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;
|
||
|
||
/**
|
||
* SaveBlockRequest
|
||
*/
|
||
|
||
@JsonTypeName("saveBlock_request")
|
||
@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 SaveBlockRequest implements Serializable {
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
private String content;
|
||
|
||
private Integer sourceVersion;
|
||
|
||
public SaveBlockRequest() {
|
||
super();
|
||
}
|
||
|
||
/**
|
||
* Constructor with only required parameters
|
||
*/
|
||
public SaveBlockRequest(String content, Integer sourceVersion) {
|
||
this.content = content;
|
||
this.sourceVersion = sourceVersion;
|
||
}
|
||
|
||
public SaveBlockRequest content(String content) {
|
||
this.content = content;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Block 正文(ProseMirror JSON)
|
||
* @return content
|
||
*/
|
||
@NotNull
|
||
@Schema(name = "content", description = "Block 正文(ProseMirror JSON)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||
@JsonProperty("content")
|
||
public String getContent() {
|
||
return content;
|
||
}
|
||
|
||
@JsonProperty("content")
|
||
public void setContent(String content) {
|
||
this.content = content;
|
||
}
|
||
|
||
public SaveBlockRequest sourceVersion(Integer sourceVersion) {
|
||
this.sourceVersion = sourceVersion;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* 客户端持有的版本号,用于乐观锁冲突检测
|
||
* @return sourceVersion
|
||
*/
|
||
@NotNull
|
||
@Schema(name = "sourceVersion", description = "客户端持有的版本号,用于乐观锁冲突检测", requiredMode = Schema.RequiredMode.REQUIRED)
|
||
@JsonProperty("sourceVersion")
|
||
public Integer getSourceVersion() {
|
||
return sourceVersion;
|
||
}
|
||
|
||
@JsonProperty("sourceVersion")
|
||
public void setSourceVersion(Integer sourceVersion) {
|
||
this.sourceVersion = sourceVersion;
|
||
}
|
||
|
||
@Override
|
||
public boolean equals(Object o) {
|
||
if (this == o) {
|
||
return true;
|
||
}
|
||
if (o == null || getClass() != o.getClass()) {
|
||
return false;
|
||
}
|
||
SaveBlockRequest saveBlockRequest = (SaveBlockRequest) o;
|
||
return Objects.equals(this.content, saveBlockRequest.content) &&
|
||
Objects.equals(this.sourceVersion, saveBlockRequest.sourceVersion);
|
||
}
|
||
|
||
@Override
|
||
public int hashCode() {
|
||
return Objects.hash(content, sourceVersion);
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append("class SaveBlockRequest {\n");
|
||
sb.append(" content: ").append(toIndentedString(content)).append("\n");
|
||
sb.append(" sourceVersion: ").append(toIndentedString(sourceVersion)).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 ");
|
||
}
|
||
}
|
||
|