build: sdk domain

This commit is contained in:
CaptainB 2023-05-31 09:45:14 +08:00
parent f05eb7581f
commit a732f121dd
7 changed files with 18 additions and 32 deletions

View File

@ -1,10 +1,8 @@
package io.metersphere.sdk.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import lombok.Data;
@ -37,7 +35,7 @@ public class Environment implements Serializable {
@Schema(title = "端口")
private Integer port;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(title = "创建人")
private String createUser;
@Schema(title = "创建时间")

View File

@ -1,10 +1,8 @@
package io.metersphere.sdk.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import lombok.Data;
@ -28,7 +26,7 @@ public class EnvironmentGroup implements Serializable {
@Schema(title = "环境组描述")
private String description;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(title = "创建人")
private String createUser;
@Schema(title = "创建时间")

View File

@ -1,10 +1,8 @@
package io.metersphere.sdk.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import lombok.Data;

View File

@ -1,10 +1,8 @@
package io.metersphere.sdk.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import lombok.Data;

View File

@ -1,10 +1,8 @@
package io.metersphere.sdk.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import lombok.Data;

View File

@ -1,10 +1,8 @@
package io.metersphere.sdk.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import lombok.Data;
@ -30,7 +28,7 @@ public class RelationshipEdge implements Serializable {
@Size(min = 1, max = 50, message = "{relationship_edge.graph_id.length_range}", groups = {Created.class, Updated.class})
private String graphId;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(title = "创建人")
private String createUser;
@Schema(title = "")

View File

@ -1,10 +1,8 @@
package io.metersphere.sdk.domain;
import io.metersphere.validation.groups.Created;
import io.metersphere.validation.groups.Updated;
import io.metersphere.validation.groups.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.*;
import java.io.Serializable;
import lombok.Data;
@ -18,7 +16,7 @@ public class ShareInfo implements Serializable {
@Schema(title = "创建时间")
private Long createTime;
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(title = "创建人")
private String createUser;
@Schema(title = "更新时间")