package com.qiwu.inference.dto; import com.qiwu.inference.pojo.DemandTask; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.util.Objects; @Getter @Setter public class DemandTaskDto implements Serializable { private static final long serialVersionUID = 1L; /** * id */ private int id; /** * demandTaskId */ private int demandTaskId; /** * 名称 */ private String name; /** * 描述 */ private String description; /** * 主体 */ private int subject; /** * 客体 */ private int object; /** * 开启条件信任度的开始 */ private int trustStart=100; /** * 开启条件信任度的结束 */ private int trustEnd=100; /** * 开启条件威胁度的开始 */ private int deterrenceStart=100; /** * 开启条件威胁度的结束 */ private int deterrenceEnd=100; /** * 后置任务 */ private String postTask; /** * 线索开关 0 代表不需要线索就可执行,1 代表需要线索才能执行此任务 2 代表任务已解锁(操作添加,非ai) */ private int clueSwitch; /** * 条件1|次数 */ private String condition1; /** * 条件2|次数 */ private String condition2; /** * 信任度增减 */ private int trustDegree; /** * 威慑度增减 */ private int deterrenceDegree; /** * 完成奖励 */ private String completionReward; /** * 完成反馈 */ private String completionFeedback; /** * 有效次数 */ private int effectiveDegree; /** * 类型: 1:身份 2:场所 3:性格爱好 4:行为 5:关系 6:任务 9:关键线索 */ private int type; /** * 线索id */ private int clueId; /** * 信息级别 */ private int infoLevel; /** * 任务标签 1普通任务 2关键任务 3目标任 */ private int taskLabel; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DemandTaskDto that = (DemandTaskDto) o; return id == that.id && demandTaskId == that.demandTaskId && subject == that.subject && type == that.type && clueId == that.clueId && name.equals(that.name); } @Override public int hashCode() { return Objects.hash(id, demandTaskId, name, subject, type, clueId); } }