build: model extend
This commit is contained in:
parent
5bb6842ba8
commit
ca23904716
|
@ -9,13 +9,15 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "性能测试用例大字段")
|
@ApiModel(value = "性能测试用例大字段")
|
||||||
@TableName("load_test_blob")
|
@TableName("load_test_blob")
|
||||||
@Data
|
@Data
|
||||||
public class LoadTestBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class LoadTestBlob extends LoadTest implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@TableId
|
@TableId
|
||||||
@NotBlank(message = "{load_test_blob.test_id.not_blank}", groups = {Updated.class})
|
@NotBlank(message = "{load_test_blob.test_id.not_blank}", groups = {Updated.class})
|
||||||
|
|
|
@ -7,13 +7,15 @@ import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "性能报告大字段")
|
@ApiModel(value = "性能报告大字段")
|
||||||
@TableName("load_test_report_blob")
|
@TableName("load_test_report_blob")
|
||||||
@Data
|
@Data
|
||||||
public class LoadTestReportBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class LoadTestReportBlob extends LoadTestReport implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@TableId
|
@TableId
|
||||||
@NotBlank(message = "{load_test_report_blob.report_id.not_blank}", groups = {Updated.class})
|
@NotBlank(message = "{load_test_report_blob.report_id.not_blank}", groups = {Updated.class})
|
||||||
|
|
|
@ -7,13 +7,15 @@ import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "自定义函数-代码片段大字段")
|
@ApiModel(value = "自定义函数-代码片段大字段")
|
||||||
@TableName("custom_function_blob")
|
@TableName("custom_function_blob")
|
||||||
@Data
|
@Data
|
||||||
public class CustomFunctionBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class CustomFunctionBlob extends CustomFunction implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@TableId
|
@TableId
|
||||||
|
|
|
@ -9,13 +9,15 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "误报库大字段")
|
@ApiModel(value = "误报库大字段")
|
||||||
@TableName("fake_error_blob")
|
@TableName("fake_error_blob")
|
||||||
@Data
|
@Data
|
||||||
public class FakeErrorBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class FakeErrorBlob extends FakeError implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@TableId
|
@TableId
|
||||||
|
|
|
@ -9,13 +9,15 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "文件基础信息大字段")
|
@ApiModel(value = "文件基础信息大字段")
|
||||||
@TableName("file_metadata_blob")
|
@TableName("file_metadata_blob")
|
||||||
@Data
|
@Data
|
||||||
public class FileMetadataBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class FileMetadataBlob extends FileMetadata implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@TableId
|
@TableId
|
||||||
|
|
|
@ -9,13 +9,15 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "文件管理模块大字段")
|
@ApiModel(value = "文件管理模块大字段")
|
||||||
@TableName("file_module_blob")
|
@TableName("file_module_blob")
|
||||||
@Data
|
@Data
|
||||||
public class FileModuleBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class FileModuleBlob extends FileModule implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@TableId
|
@TableId
|
||||||
|
|
|
@ -9,13 +9,15 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "消息通知任务大字段")
|
@ApiModel(value = "消息通知任务大字段")
|
||||||
@TableName("message_task_blob")
|
@TableName("message_task_blob")
|
||||||
@Data
|
@Data
|
||||||
public class MessageTaskBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class MessageTaskBlob extends MessageTask implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@TableId
|
@TableId
|
||||||
|
|
|
@ -9,12 +9,15 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "自定义指令大字段")
|
@ApiModel(value = "自定义指令大字段")
|
||||||
@TableName("ui_custom_command_blob")
|
@TableName("ui_custom_command_blob")
|
||||||
@Data
|
@Data
|
||||||
public class UiCustomCommandBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class UiCustomCommandBlob extends UiCustomCommand implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@TableId
|
@TableId
|
||||||
@NotBlank(message = "{ui_custom_command_blob.scenario_id.not_blank}", groups = {Updated.class})
|
@NotBlank(message = "{ui_custom_command_blob.scenario_id.not_blank}", groups = {Updated.class})
|
||||||
|
|
|
@ -9,29 +9,32 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "场景大字段")
|
@ApiModel(value = "场景大字段")
|
||||||
@TableName("ui_scenario_blob")
|
@TableName("ui_scenario_blob")
|
||||||
@Data
|
@Data
|
||||||
public class UiScenarioBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class UiScenarioBlob extends UiScenario implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@TableId
|
@TableId
|
||||||
@NotBlank(message = "{ui_scenario_blob.scenario_id.not_blank}", groups = {Updated.class})
|
@NotBlank(message = "{ui_scenario_blob.scenario_id.not_blank}", groups = {Updated.class})
|
||||||
@ApiModelProperty(name = "场景ID", required = true, allowableValues="range[1, 255]")
|
@ApiModelProperty(name = "场景ID", required = true, allowableValues = "range[1, 255]")
|
||||||
private String scenarioId;
|
private String scenarioId;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(name = "场景定义", required = false, allowableValues="range[1, ]")
|
@ApiModelProperty(name = "场景定义", required = false, allowableValues = "range[1, ]")
|
||||||
private byte[] scenarioDefinition;
|
private byte[] scenarioDefinition;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(name = "描述", required = false, allowableValues="range[1, ]")
|
@ApiModelProperty(name = "描述", required = false, allowableValues = "range[1, ]")
|
||||||
private byte[] description;
|
private byte[] description;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(name = "环境", required = false, allowableValues="range[1, ]")
|
@ApiModelProperty(name = "环境", required = false, allowableValues = "range[1, ]")
|
||||||
private byte[] environmentJson;
|
private byte[] environmentJson;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -2,32 +2,33 @@ package io.metersphere.ui.domain;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import io.metersphere.validation.groups.Created;
|
|
||||||
import io.metersphere.validation.groups.Updated;
|
import io.metersphere.validation.groups.Updated;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import jakarta.validation.constraints.Size;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ApiModel(value = "场景报告大字段")
|
@ApiModel(value = "场景报告大字段")
|
||||||
@TableName("ui_scenario_report_blob")
|
@TableName("ui_scenario_report_blob")
|
||||||
@Data
|
@Data
|
||||||
public class UiScenarioReportBlob implements Serializable {
|
@EqualsAndHashCode(callSuper=false)
|
||||||
|
public class UiScenarioReportBlob extends UiScenarioReport implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@TableId
|
@TableId
|
||||||
@NotBlank(message = "{ui_scenario_report_blob.report_id.not_blank}", groups = {Updated.class})
|
@NotBlank(message = "{ui_scenario_report_blob.report_id.not_blank}", groups = {Updated.class})
|
||||||
@ApiModelProperty(name = "报告ID", required = true, allowableValues="range[1, 50]")
|
@ApiModelProperty(name = "报告ID", required = true, allowableValues = "range[1, 50]")
|
||||||
private String reportId;
|
private String reportId;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(name = "描述", required = false, allowableValues="range[1, ]")
|
@ApiModelProperty(name = "描述", required = false, allowableValues = "range[1, ]")
|
||||||
private byte[] description;
|
private byte[] description;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(name = "执行环境配置", required = false, allowableValues="range[1, ]")
|
@ApiModelProperty(name = "执行环境配置", required = false, allowableValues = "range[1, ]")
|
||||||
private byte[] envConfig;
|
private byte[] envConfig;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue