build: sdk domain
This commit is contained in:
parent
d45f036769
commit
bcb58c5126
|
@ -10,46 +10,48 @@ import lombok.Data;
|
|||
|
||||
@Data
|
||||
public class Environment implements Serializable {
|
||||
@Schema(title = "Api Test Environment ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(title = "环境ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "Api Test Environment Name", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(title = "环境名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.name.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{environment.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 255, message = "{environment.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "Project ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.project_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment.project_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String projectId;
|
||||
|
||||
@Schema(title = "Api Test Protocol")
|
||||
@Schema(title = "协议")
|
||||
private String protocol;
|
||||
|
||||
@Schema(title = "Api Test Socket")
|
||||
@Schema(title = "")
|
||||
private String socket;
|
||||
|
||||
@Schema(title = "Api Test Domain")
|
||||
@Schema(title = "域名/IP")
|
||||
private String domain;
|
||||
|
||||
@Schema(title = "Api Test Port")
|
||||
@Schema(title = "端口")
|
||||
private Integer port;
|
||||
|
||||
@Schema(title = "")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment.create_user.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "")
|
||||
@Schema(title = "创建时间")
|
||||
private Long createTime;
|
||||
|
||||
@Schema(title = "")
|
||||
@Schema(title = "更新时间")
|
||||
private Long updateTime;
|
||||
|
||||
@Schema(title = "Global ariables")
|
||||
@Schema(title = "全局变量")
|
||||
private String variables;
|
||||
|
||||
@Schema(title = "Global Heards")
|
||||
@Schema(title = "请求头")
|
||||
private String headers;
|
||||
|
||||
@Schema(title = "Config Data (JSON format)")
|
||||
|
|
|
@ -17,18 +17,20 @@ public class EnvironmentGroup implements Serializable {
|
|||
|
||||
@Schema(title = "环境组名", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group.name.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 255, message = "{environment_group.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "所属工作空间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group.workspace_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{environment_group.workspace_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group.workspace_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String workspaceId;
|
||||
|
||||
@Schema(title = "环境组描述")
|
||||
private String description;
|
||||
|
||||
@Schema(title = "创建人")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{environment_group.create_user.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{environment_group.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "创建时间")
|
||||
|
|
|
@ -18,7 +18,7 @@ public class EnvironmentGroupProject implements Serializable {
|
|||
@Schema(title = "环境组id")
|
||||
private String environmentGroupId;
|
||||
|
||||
@Schema(title = "api test environment 环境ID")
|
||||
@Schema(title = "环境ID")
|
||||
private String environmentId;
|
||||
|
||||
@Schema(title = "项目id")
|
||||
|
|
|
@ -15,16 +15,24 @@ public class ExecutionQueue implements Serializable {
|
|||
@Size(min = 1, max = 50, message = "{execution_queue.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "集合报告/测试计划报告")
|
||||
@Schema(title = "集合报告/测试计划报告", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue.report_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{execution_queue.report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String reportId;
|
||||
|
||||
@Schema(title = "报告类型/计划报告/单独报告")
|
||||
@Schema(title = "报告类型/计划报告/单独报告", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue.report_type.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{execution_queue.report_type.length_range}", groups = {Created.class, Updated.class})
|
||||
private String reportType;
|
||||
|
||||
@Schema(title = "执行模式/scenario/api/test_paln_api/test_pan_scenario")
|
||||
@Schema(title = "执行模式/scenario/api/test_paln_api/test_pan_scenario", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue.run_mode.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 100, message = "{execution_queue.run_mode.length_range}", groups = {Created.class, Updated.class})
|
||||
private String runMode;
|
||||
|
||||
@Schema(title = "执行资源池")
|
||||
@Schema(title = "执行资源池", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{execution_queue.pool_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{execution_queue.pool_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String poolId;
|
||||
|
||||
@Schema(title = "创建时间")
|
||||
|
|
|
@ -31,9 +31,9 @@ public class RelationshipEdge implements Serializable {
|
|||
private String graphId;
|
||||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{relationship_edge.creator.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{relationship_edge.creator.length_range}", groups = {Created.class, Updated.class})
|
||||
private String creator;
|
||||
@NotBlank(message = "{relationship_edge.create_user.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{relationship_edge.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "")
|
||||
private Long createTime;
|
||||
|
|
|
@ -384,73 +384,73 @@ public class RelationshipEdgeExample {
|
|||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorIsNull() {
|
||||
addCriterion("creator is null");
|
||||
public Criteria andCreateUserIsNull() {
|
||||
addCriterion("create_user is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorIsNotNull() {
|
||||
addCriterion("creator is not null");
|
||||
public Criteria andCreateUserIsNotNull() {
|
||||
addCriterion("create_user is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorEqualTo(String value) {
|
||||
addCriterion("creator =", value, "creator");
|
||||
public Criteria andCreateUserEqualTo(String value) {
|
||||
addCriterion("create_user =", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorNotEqualTo(String value) {
|
||||
addCriterion("creator <>", value, "creator");
|
||||
public Criteria andCreateUserNotEqualTo(String value) {
|
||||
addCriterion("create_user <>", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorGreaterThan(String value) {
|
||||
addCriterion("creator >", value, "creator");
|
||||
public Criteria andCreateUserGreaterThan(String value) {
|
||||
addCriterion("create_user >", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("creator >=", value, "creator");
|
||||
public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("create_user >=", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorLessThan(String value) {
|
||||
addCriterion("creator <", value, "creator");
|
||||
public Criteria andCreateUserLessThan(String value) {
|
||||
addCriterion("create_user <", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorLessThanOrEqualTo(String value) {
|
||||
addCriterion("creator <=", value, "creator");
|
||||
public Criteria andCreateUserLessThanOrEqualTo(String value) {
|
||||
addCriterion("create_user <=", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorLike(String value) {
|
||||
addCriterion("creator like", value, "creator");
|
||||
public Criteria andCreateUserLike(String value) {
|
||||
addCriterion("create_user like", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorNotLike(String value) {
|
||||
addCriterion("creator not like", value, "creator");
|
||||
public Criteria andCreateUserNotLike(String value) {
|
||||
addCriterion("create_user not like", value, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorIn(List<String> values) {
|
||||
addCriterion("creator in", values, "creator");
|
||||
public Criteria andCreateUserIn(List<String> values) {
|
||||
addCriterion("create_user in", values, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorNotIn(List<String> values) {
|
||||
addCriterion("creator not in", values, "creator");
|
||||
public Criteria andCreateUserNotIn(List<String> values) {
|
||||
addCriterion("create_user not in", values, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorBetween(String value1, String value2) {
|
||||
addCriterion("creator between", value1, value2, "creator");
|
||||
public Criteria andCreateUserBetween(String value1, String value2) {
|
||||
addCriterion("create_user between", value1, value2, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatorNotBetween(String value1, String value2) {
|
||||
addCriterion("creator not between", value1, value2, "creator");
|
||||
public Criteria andCreateUserNotBetween(String value1, String value2) {
|
||||
addCriterion("create_user not between", value1, value2, "createUser");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@ public class ShareInfo implements Serializable {
|
|||
@Schema(title = "创建时间")
|
||||
private Long createTime;
|
||||
|
||||
@Schema(title = "创建人")
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{share_info.create_user.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{share_info.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "更新时间")
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<id column="target_id" jdbcType="VARCHAR" property="targetId" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="graph_id" jdbcType="VARCHAR" property="graphId" />
|
||||
<result column="creator" jdbcType="VARCHAR" property="creator" />
|
||||
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
|
||||
<result column="create_time" jdbcType="BIGINT" property="createTime" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
|
@ -68,7 +68,7 @@
|
|||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
source_id, target_id, `type`, graph_id, creator, create_time
|
||||
source_id, target_id, `type`, graph_id, create_user, create_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="io.metersphere.sdk.domain.RelationshipEdgeExample" resultMap="BaseResultMap">
|
||||
select
|
||||
|
@ -104,10 +104,10 @@
|
|||
</delete>
|
||||
<insert id="insert" parameterType="io.metersphere.sdk.domain.RelationshipEdge">
|
||||
insert into relationship_edge (source_id, target_id, `type`,
|
||||
graph_id, creator, create_time
|
||||
graph_id, create_user, create_time
|
||||
)
|
||||
values (#{sourceId,jdbcType=VARCHAR}, #{targetId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
||||
#{graphId,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}
|
||||
#{graphId,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="io.metersphere.sdk.domain.RelationshipEdge">
|
||||
|
@ -125,8 +125,8 @@
|
|||
<if test="graphId != null">
|
||||
graph_id,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
<if test="createUser != null">
|
||||
create_user,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
|
@ -145,8 +145,8 @@
|
|||
<if test="graphId != null">
|
||||
#{graphId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator,jdbcType=VARCHAR},
|
||||
<if test="createUser != null">
|
||||
#{createUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=BIGINT},
|
||||
|
@ -174,8 +174,8 @@
|
|||
<if test="record.graphId != null">
|
||||
graph_id = #{record.graphId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.creator != null">
|
||||
creator = #{record.creator,jdbcType=VARCHAR},
|
||||
<if test="record.createUser != null">
|
||||
create_user = #{record.createUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=BIGINT},
|
||||
|
@ -191,7 +191,7 @@
|
|||
target_id = #{record.targetId,jdbcType=VARCHAR},
|
||||
`type` = #{record.type,jdbcType=VARCHAR},
|
||||
graph_id = #{record.graphId,jdbcType=VARCHAR},
|
||||
creator = #{record.creator,jdbcType=VARCHAR},
|
||||
create_user = #{record.createUser,jdbcType=VARCHAR},
|
||||
create_time = #{record.createTime,jdbcType=BIGINT}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
|
@ -206,8 +206,8 @@
|
|||
<if test="graphId != null">
|
||||
graph_id = #{graphId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator = #{creator,jdbcType=VARCHAR},
|
||||
<if test="createUser != null">
|
||||
create_user = #{createUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=BIGINT},
|
||||
|
@ -220,7 +220,7 @@
|
|||
update relationship_edge
|
||||
set `type` = #{type,jdbcType=VARCHAR},
|
||||
graph_id = #{graphId,jdbcType=VARCHAR},
|
||||
creator = #{creator,jdbcType=VARCHAR},
|
||||
create_user = #{createUser,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=BIGINT}
|
||||
where source_id = #{sourceId,jdbcType=VARCHAR}
|
||||
and target_id = #{targetId,jdbcType=VARCHAR}
|
||||
|
|
|
@ -53,33 +53,28 @@
|
|||
<property name="forceBigDecimals" value="false"/>
|
||||
</javaTypeResolver>
|
||||
<!-- 模型对象 -->
|
||||
<javaModelGenerator targetPackage="io.metersphere.load.domain" targetProject="src/main/java">
|
||||
<javaModelGenerator targetPackage="io.metersphere.sdk.domain" targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
<property name="trimStrings" value="true"/>
|
||||
</javaModelGenerator>
|
||||
<!-- XML映射文件 -->
|
||||
<sqlMapGenerator targetPackage="io.metersphere.load.mapper" targetProject="src/main/java">
|
||||
<sqlMapGenerator targetPackage="io.metersphere.sdk.mapper" targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
</sqlMapGenerator>
|
||||
<!-- 接口 -->
|
||||
<javaClientGenerator type="XMLMAPPER" targetPackage="io.metersphere.load.mapper"
|
||||
<javaClientGenerator type="XMLMAPPER" targetPackage="io.metersphere.sdk.mapper"
|
||||
targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
</javaClientGenerator>
|
||||
|
||||
<!--要生成的数据库表 -->
|
||||
<table tableName="load_test_api"/>
|
||||
<table tableName="load_test"/>
|
||||
<table tableName="load_test_file"/>
|
||||
<table tableName="load_test_follow"/>
|
||||
<table tableName="load_test_report"/>
|
||||
<table tableName="load_test_report_file"/>
|
||||
<table tableName="load_test_report_log"/>
|
||||
<table tableName="load_test_report_result"/>
|
||||
<table tableName="load_test_report_result_part"/>
|
||||
<table tableName="load_test_report_result_realtime"/>
|
||||
<table tableName="load_test_blob"/>
|
||||
<table tableName="load_test_report_blob"/>
|
||||
<table tableName="execution_queue"/>
|
||||
<table tableName="execution_queue_detail"/>
|
||||
<table tableName="environment"/>
|
||||
<table tableName="relationship_edge"/>
|
||||
<table tableName="share_info"/>
|
||||
<table tableName="environment_group_project"/>
|
||||
<table tableName="environment_group"/>
|
||||
|
||||
<!-- 要忽略的字段-->
|
||||
<!-- <table tableName="test_case">
|
||||
|
|
Loading…
Reference in New Issue