oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/CallAttributionJobCreate.java
zizi 10d1f97d3f feat(api): 全量补齐 6 模块 OpenAPI 契约(229 接口)+ 重新生成类型
Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229
修复 Knowledge YAML 重复 key
重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
2026-05-24 15:06:11 +08:00

273 lines
7.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
/**
* 创建调用归属 job 请求
*/
@Schema(name = "CallAttributionJobCreate", description = "创建调用归属 job 请求")
@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 CallAttributionJobCreate implements Serializable {
private static final long serialVersionUID = 1L;
private String commandId;
private String userId;
private @Nullable String taskId;
private @Nullable String workId;
private @Nullable String agentId;
private @Nullable String knowledgeSourceId;
private @Nullable String marketAuthorizationId;
private @Nullable String reason;
public CallAttributionJobCreate() {
super();
}
/**
* Constructor with only required parameters
*/
public CallAttributionJobCreate(String commandId, String userId) {
this.commandId = commandId;
this.userId = userId;
}
public CallAttributionJobCreate 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 CallAttributionJobCreate userId(String userId) {
this.userId = userId;
return this;
}
/**
* 待归属用户 ID
* @return userId
*/
@NotNull
@Schema(name = "userId", description = "待归属用户 ID", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("userId")
public String getUserId() {
return userId;
}
@JsonProperty("userId")
public void setUserId(String userId) {
this.userId = userId;
}
public CallAttributionJobCreate taskId(@Nullable String taskId) {
this.taskId = taskId;
return this;
}
/**
* 关联 AI 任务 ID可选
* @return taskId
*/
@Schema(name = "taskId", description = "关联 AI 任务 ID可选", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("taskId")
public @Nullable String getTaskId() {
return taskId;
}
@JsonProperty("taskId")
public void setTaskId(@Nullable String taskId) {
this.taskId = taskId;
}
public CallAttributionJobCreate workId(@Nullable String workId) {
this.workId = workId;
return this;
}
/**
* 关联作品 ID可选
* @return workId
*/
@Schema(name = "workId", description = "关联作品 ID可选", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("workId")
public @Nullable String getWorkId() {
return workId;
}
@JsonProperty("workId")
public void setWorkId(@Nullable String workId) {
this.workId = workId;
}
public CallAttributionJobCreate agentId(@Nullable String agentId) {
this.agentId = agentId;
return this;
}
/**
* 关联智能体 ID可选
* @return agentId
*/
@Schema(name = "agentId", description = "关联智能体 ID可选", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("agentId")
public @Nullable String getAgentId() {
return agentId;
}
@JsonProperty("agentId")
public void setAgentId(@Nullable String agentId) {
this.agentId = agentId;
}
public CallAttributionJobCreate knowledgeSourceId(@Nullable String knowledgeSourceId) {
this.knowledgeSourceId = knowledgeSourceId;
return this;
}
/**
* 关联知识来源 ID可选
* @return knowledgeSourceId
*/
@Schema(name = "knowledgeSourceId", description = "关联知识来源 ID可选", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("knowledgeSourceId")
public @Nullable String getKnowledgeSourceId() {
return knowledgeSourceId;
}
@JsonProperty("knowledgeSourceId")
public void setKnowledgeSourceId(@Nullable String knowledgeSourceId) {
this.knowledgeSourceId = knowledgeSourceId;
}
public CallAttributionJobCreate marketAuthorizationId(@Nullable String marketAuthorizationId) {
this.marketAuthorizationId = marketAuthorizationId;
return this;
}
/**
* 关联市场授权 ID可选
* @return marketAuthorizationId
*/
@Schema(name = "marketAuthorizationId", description = "关联市场授权 ID可选", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("marketAuthorizationId")
public @Nullable String getMarketAuthorizationId() {
return marketAuthorizationId;
}
@JsonProperty("marketAuthorizationId")
public void setMarketAuthorizationId(@Nullable String marketAuthorizationId) {
this.marketAuthorizationId = marketAuthorizationId;
}
public CallAttributionJobCreate reason(@Nullable String reason) {
this.reason = reason;
return this;
}
/**
* 归属原因
* @return reason
*/
@Schema(name = "reason", description = "归属原因", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("reason")
public @Nullable String getReason() {
return reason;
}
@JsonProperty("reason")
public void setReason(@Nullable String reason) {
this.reason = reason;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallAttributionJobCreate callAttributionJobCreate = (CallAttributionJobCreate) o;
return Objects.equals(this.commandId, callAttributionJobCreate.commandId) &&
Objects.equals(this.userId, callAttributionJobCreate.userId) &&
Objects.equals(this.taskId, callAttributionJobCreate.taskId) &&
Objects.equals(this.workId, callAttributionJobCreate.workId) &&
Objects.equals(this.agentId, callAttributionJobCreate.agentId) &&
Objects.equals(this.knowledgeSourceId, callAttributionJobCreate.knowledgeSourceId) &&
Objects.equals(this.marketAuthorizationId, callAttributionJobCreate.marketAuthorizationId) &&
Objects.equals(this.reason, callAttributionJobCreate.reason);
}
@Override
public int hashCode() {
return Objects.hash(commandId, userId, taskId, workId, agentId, knowledgeSourceId, marketAuthorizationId, reason);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CallAttributionJobCreate {\n");
sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n");
sb.append(" workId: ").append(toIndentedString(workId)).append("\n");
sb.append(" agentId: ").append(toIndentedString(agentId)).append("\n");
sb.append(" knowledgeSourceId: ").append(toIndentedString(knowledgeSourceId)).append("\n");
sb.append(" marketAuthorizationId: ").append(toIndentedString(marketAuthorizationId)).append("\n");
sb.append(" reason: ").append(toIndentedString(reason)).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 ");
}
}