Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
256 lines
6.6 KiB
Java
256 lines
6.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 com.fasterxml.jackson.annotation.JsonTypeName;
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
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;
|
|
|
|
/**
|
|
* SubmitAppealRequest
|
|
*/
|
|
|
|
@JsonTypeName("submitAppeal_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 SubmitAppealRequest implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private UUID assetId;
|
|
|
|
/**
|
|
* 申诉类型
|
|
*/
|
|
public enum AppealTypeEnum {
|
|
REVIEW_REJECTION("review_rejection"),
|
|
|
|
DELIST("delist"),
|
|
|
|
RECALL("recall"),
|
|
|
|
LICENSE_REVOCATION("license_revocation"),
|
|
|
|
USAGE_IMPACT("usage_impact");
|
|
|
|
private final String value;
|
|
|
|
AppealTypeEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static AppealTypeEnum fromValue(String value) {
|
|
for (AppealTypeEnum b : AppealTypeEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private AppealTypeEnum appealType;
|
|
|
|
private String reason;
|
|
|
|
@Valid
|
|
private List<String> evidenceMaterials = new ArrayList<>();
|
|
|
|
private UUID commandId;
|
|
|
|
public SubmitAppealRequest() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* Constructor with only required parameters
|
|
*/
|
|
public SubmitAppealRequest(UUID assetId, AppealTypeEnum appealType, String reason, UUID commandId) {
|
|
this.assetId = assetId;
|
|
this.appealType = appealType;
|
|
this.reason = reason;
|
|
this.commandId = commandId;
|
|
}
|
|
|
|
public SubmitAppealRequest assetId(UUID assetId) {
|
|
this.assetId = assetId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 申诉对象资产 ID
|
|
* @return assetId
|
|
*/
|
|
@NotNull @Valid
|
|
@Schema(name = "assetId", description = "申诉对象资产 ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("assetId")
|
|
public UUID getAssetId() {
|
|
return assetId;
|
|
}
|
|
|
|
@JsonProperty("assetId")
|
|
public void setAssetId(UUID assetId) {
|
|
this.assetId = assetId;
|
|
}
|
|
|
|
public SubmitAppealRequest appealType(AppealTypeEnum appealType) {
|
|
this.appealType = appealType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 申诉类型
|
|
* @return appealType
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "appealType", description = "申诉类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("appealType")
|
|
public AppealTypeEnum getAppealType() {
|
|
return appealType;
|
|
}
|
|
|
|
@JsonProperty("appealType")
|
|
public void setAppealType(AppealTypeEnum appealType) {
|
|
this.appealType = appealType;
|
|
}
|
|
|
|
public SubmitAppealRequest reason(String reason) {
|
|
this.reason = reason;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 申诉理由
|
|
* @return reason
|
|
*/
|
|
@NotNull @Size(max = 5000)
|
|
@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 SubmitAppealRequest evidenceMaterials(List<String> evidenceMaterials) {
|
|
this.evidenceMaterials = evidenceMaterials;
|
|
return this;
|
|
}
|
|
|
|
public SubmitAppealRequest addEvidenceMaterialsItem(String evidenceMaterialsItem) {
|
|
if (this.evidenceMaterials == null) {
|
|
this.evidenceMaterials = new ArrayList<>();
|
|
}
|
|
this.evidenceMaterials.add(evidenceMaterialsItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 证据材料标识列表
|
|
* @return evidenceMaterials
|
|
*/
|
|
|
|
@Schema(name = "evidenceMaterials", description = "证据材料标识列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("evidenceMaterials")
|
|
public List<String> getEvidenceMaterials() {
|
|
return evidenceMaterials;
|
|
}
|
|
|
|
@JsonProperty("evidenceMaterials")
|
|
public void setEvidenceMaterials(List<String> evidenceMaterials) {
|
|
this.evidenceMaterials = evidenceMaterials;
|
|
}
|
|
|
|
public SubmitAppealRequest commandId(UUID commandId) {
|
|
this.commandId = commandId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 幂等键
|
|
* @return commandId
|
|
*/
|
|
@NotNull @Valid
|
|
@Schema(name = "commandId", description = "幂等键", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("commandId")
|
|
public UUID getCommandId() {
|
|
return commandId;
|
|
}
|
|
|
|
@JsonProperty("commandId")
|
|
public void setCommandId(UUID commandId) {
|
|
this.commandId = commandId;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
SubmitAppealRequest submitAppealRequest = (SubmitAppealRequest) o;
|
|
return Objects.equals(this.assetId, submitAppealRequest.assetId) &&
|
|
Objects.equals(this.appealType, submitAppealRequest.appealType) &&
|
|
Objects.equals(this.reason, submitAppealRequest.reason) &&
|
|
Objects.equals(this.evidenceMaterials, submitAppealRequest.evidenceMaterials) &&
|
|
Objects.equals(this.commandId, submitAppealRequest.commandId);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(assetId, appealType, reason, evidenceMaterials, commandId);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class SubmitAppealRequest {\n");
|
|
sb.append(" assetId: ").append(toIndentedString(assetId)).append("\n");
|
|
sb.append(" appealType: ").append(toIndentedString(appealType)).append("\n");
|
|
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
|
|
sb.append(" evidenceMaterials: ").append(toIndentedString(evidenceMaterials)).append("\n");
|
|
sb.append(" commandId: ").append(toIndentedString(commandId)).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 ");
|
|
}
|
|
}
|
|
|