build: update api basic primary key

This commit is contained in:
fit2-zhao 2023-05-22 16:37:12 +08:00
parent ba383e9727
commit 72d0fd3f16
5 changed files with 6 additions and 7 deletions

View File

@ -22,8 +22,7 @@ public class ApiDefinitionBlob extends ApiDefinition implements Serializable {
@TableId @TableId
@NotBlank(message = "{api_definition_blob.api_definition_id.not_blank}", groups = {Updated.class}) @NotBlank(message = "{api_definition_blob.api_definition_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "接口fk/ 一对一关系", required = true, allowableValues = "range[1, 50]") @ApiModelProperty(name = "接口fk/ 一对一关系", required = true, allowableValues = "range[1, 50]")
private String apiDefinitionId; private String id;
@ApiModelProperty(name = "请求内容", required = false, dataType = "byte[]") @ApiModelProperty(name = "请求内容", required = false, dataType = "byte[]")
private byte[] request; private byte[] request;

View File

@ -14,13 +14,13 @@ import java.io.Serializable;
@ApiModel(value = "mock期望值配置") @ApiModel(value = "mock期望值配置")
@TableName("api_definition_mock_config") @TableName("api_definition_mock_config")
@Data @Data
public class ApiDefinitionMockConfig implements Serializable { public class ApiDefinitionMockConfig extends ApiDefinitionMock implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId @TableId
@NotBlank(message = "{api_definition_mock_config.api_definition_mock_id.not_blank}", groups = {Updated.class}) @NotBlank(message = "{api_definition_mock_config.api_definition_mock_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "接口mock pk", required = true, allowableValues = "range[1, 50]") @ApiModelProperty(name = "接口mock pk", required = true, allowableValues = "range[1, 50]")
private String apiDefinitionMockId; private String id;
@ApiModelProperty(name = "请求内容", required = false, allowableValues = "range[1, ]") @ApiModelProperty(name = "请求内容", required = false, allowableValues = "range[1, ]")
private byte[] request; private byte[] request;

View File

@ -22,7 +22,7 @@ public class ApiReportBlob extends ApiReport implements Serializable {
@TableId @TableId
@NotBlank(message = "{api_report_blob.api_report_id.not_blank}", groups = {Updated.class}) @NotBlank(message = "{api_report_blob.api_report_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "接口报告fk", required = true, allowableValues = "range[1, 50]") @ApiModelProperty(name = "接口报告fk", required = true, allowableValues = "range[1, 50]")
private String apiReportId; private String id;
@ApiModelProperty(name = "结果内容详情", required = false, dataType = "byte[]") @ApiModelProperty(name = "结果内容详情", required = false, dataType = "byte[]")
private byte[] content; private byte[] content;

View File

@ -22,7 +22,7 @@ public class ApiScenarioBlob extends ApiScenario implements Serializable {
@TableId @TableId
@NotBlank(message = "{api_scenario_blob.api_scenario_id.not_blank}", groups = {Updated.class}) @NotBlank(message = "{api_scenario_blob.api_scenario_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "场景pk", required = true, allowableValues = "range[1, 50]") @ApiModelProperty(name = "场景pk", required = true, allowableValues = "range[1, 50]")
private String apiScenarioId; private String id;
@ApiModelProperty(name = "场景步骤内容", required = false, dataType = "byte[]") @ApiModelProperty(name = "场景步骤内容", required = false, dataType = "byte[]")
private byte[] content; private byte[] content;

View File

@ -22,7 +22,7 @@ public class ApiTestCaseBlob extends ApiTestCase implements Serializable {
@TableId @TableId
@NotBlank(message = "{api_test_case_blob.api_test_case_id.not_blank}", groups = {Updated.class}) @NotBlank(message = "{api_test_case_blob.api_test_case_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "接口用例pk", required = true, allowableValues = "range[1, 50]") @ApiModelProperty(name = "接口用例pk", required = true, allowableValues = "range[1, 50]")
private String apiTestCaseId; private String id;
@ApiModelProperty(name = "请求内容", required = false, dataType = "byte[]") @ApiModelProperty(name = "请求内容", required = false, dataType = "byte[]")
private byte[] request; private byte[] request;