|
@@ -0,0 +1,133 @@
|
|
|
|
|
+package space.anyi.openAPI.model.interfaceParam;
|
|
|
|
|
+
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
+import java.io.Serializable;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 接口参数
|
|
|
|
|
+ * @TableName interface_param
|
|
|
|
|
+ */
|
|
|
|
|
+@TableName(value ="interface_param")
|
|
|
|
|
+@Data
|
|
|
|
|
+public class InterfaceParam implements Serializable {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 主键
|
|
|
|
|
+ */
|
|
|
|
|
+ @TableId(type=IdType.ASSIGN_ID)
|
|
|
|
|
+ private Long id;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 接口信息id
|
|
|
|
|
+ */
|
|
|
|
|
+ private Long interfaceInfoId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 参数名称(参数类型为body时,名称使用body)
|
|
|
|
|
+ */
|
|
|
|
|
+ private String name;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 参数描述
|
|
|
|
|
+ */
|
|
|
|
|
+ private String description;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 参数值
|
|
|
|
|
+ */
|
|
|
|
|
+ private String value;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 参数类型(0:query,1:body)
|
|
|
|
|
+ */
|
|
|
|
|
+ private Integer paramType;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 创建人
|
|
|
|
|
+ */
|
|
|
|
|
+ private Long userId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 创建时间
|
|
|
|
|
+ */
|
|
|
|
|
+ private Date createTime;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 更新时间
|
|
|
|
|
+ */
|
|
|
|
|
+ private Date updateTime;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 是否删除(0-未删, 1-已删)
|
|
|
|
|
+ */
|
|
|
|
|
+ private Integer deleteFlag;
|
|
|
|
|
+
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public boolean equals(Object that) {
|
|
|
|
|
+ if (this == that) {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (that == null) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ InterfaceParam other = (InterfaceParam) that;
|
|
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
|
|
+ && (this.getInterfaceInfoId() == null ? other.getInterfaceInfoId() == null : this.getInterfaceInfoId().equals(other.getInterfaceInfoId()))
|
|
|
|
|
+ && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
|
|
|
|
+ && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
|
|
|
|
|
+ && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
|
|
|
|
|
+ && (this.getParamType() == null ? other.getParamType() == null : this.getParamType().equals(other.getParamType()))
|
|
|
|
|
+ && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
|
|
|
|
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
|
|
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
|
|
|
|
+ && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public int hashCode() {
|
|
|
|
|
+ final int prime = 31;
|
|
|
|
|
+ int result = 1;
|
|
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
|
|
+ result = prime * result + ((getInterfaceInfoId() == null) ? 0 : getInterfaceInfoId().hashCode());
|
|
|
|
|
+ result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
|
|
|
|
+ result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
|
|
|
|
|
+ result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
|
|
|
|
|
+ result = prime * result + ((getParamType() == null) ? 0 : getParamType().hashCode());
|
|
|
|
|
+ result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
|
|
|
|
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
|
|
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
|
|
|
|
+ result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String toString() {
|
|
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
|
|
+ sb.append(" [");
|
|
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
|
|
+ sb.append(", id=").append(id);
|
|
|
|
|
+ sb.append(", interfaceInfoId=").append(interfaceInfoId);
|
|
|
|
|
+ sb.append(", name=").append(name);
|
|
|
|
|
+ sb.append(", description=").append(description);
|
|
|
|
|
+ sb.append(", value=").append(value);
|
|
|
|
|
+ sb.append(", paramType=").append(paramType);
|
|
|
|
|
+ sb.append(", userId=").append(userId);
|
|
|
|
|
+ sb.append(", createTime=").append(createTime);
|
|
|
|
|
+ sb.append(", updateTime=").append(updateTime);
|
|
|
|
|
+ sb.append(", deleteFlag=").append(deleteFlag);
|
|
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
|
|
+ sb.append("]");
|
|
|
|
|
+ return sb.toString();
|
|
|
|
|
+ }
|
|
|
|
|
+}
|