build functional i18n

This commit is contained in:
WangXu10 2023-05-22 17:15:28 +08:00 committed by fit2-zhao
parent e6383778d1
commit d8a9b1ab83
10 changed files with 220 additions and 26 deletions

View File

@ -2,12 +2,10 @@ package io.metersphere.functional.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 java.io.Serializable; import java.io.Serializable;

View File

@ -1,6 +1,5 @@
package io.metersphere.functional.domain; package io.metersphere.functional.domain;
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.Created;
import io.metersphere.validation.groups.Updated; import io.metersphere.validation.groups.Updated;

View File

@ -1,14 +1,12 @@
package io.metersphere.functional.domain; package io.metersphere.functional.domain;
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 java.io.Serializable; import java.io.Serializable;
@ApiModel(value = "评审和评审人中间表") @ApiModel(value = "评审和评审人中间表")

View File

@ -1,13 +1,10 @@
package io.metersphere.functional.domain; package io.metersphere.functional.domain;
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 java.io.Serializable; import java.io.Serializable;

View File

@ -1,17 +1,14 @@
package io.metersphere.functional.domain; package io.metersphere.functional.domain;
import java.io.Serializable;
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 java.io.Serializable;
@ApiModel(value = "功能用例和附件的中间表") @ApiModel(value = "功能用例和附件的中间表")
@TableName("functional_case_attachment") @TableName("functional_case_attachment")
@Data @Data

View File

@ -1,11 +1,8 @@
package io.metersphere.functional.domain; package io.metersphere.functional.domain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
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 lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -13,15 +10,9 @@ import java.io.Serializable;
@ApiModel(value = "功能用例") @ApiModel(value = "功能用例")
@TableName("functional_case_blob") @TableName("functional_case_blob")
@Data @Data
public class FunctionalCaseBlob implements Serializable { public class FunctionalCaseBlob extends FunctionalCase implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId
@NotBlank(message = "{functional_case_blob.functional_case_id.not_blank}", groups = {Updated.class})
@ApiModelProperty(name = "功能用例ID", required = true, allowableValues = "range[1, 50]")
private String functionalCaseId;
@ApiModelProperty(name = "用例步骤JSON)step_model 为 0 时启用", required = false) @ApiModelProperty(name = "用例步骤JSON)step_model 为 0 时启用", required = false)
private String steps; private String steps;

View File

@ -1,6 +1,5 @@
package io.metersphere.functional.domain; package io.metersphere.functional.domain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.metersphere.validation.groups.Updated; import io.metersphere.validation.groups.Updated;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;

View File

@ -47,4 +47,75 @@ functional_case_module.pos.length_range=The order length under the same node mus
functional_case_module.pos.not_blank=The order under the same node cannot be empty functional_case_module.pos.not_blank=The order under the same node cannot be empty
functional_case_module.create_user.length_range=Creator length must be between 1 and 50 functional_case_module.create_user.length_range=Creator length must be between 1 and 50
functional_case_module.create_user.not_blank=Creator cannot be empty functional_case_module.create_user.not_blank=Creator cannot be empty
#moduleFunctionalCaseAttachment
functional_case_attachment.functional_case_id.not_blank=Function case ID cannot be empty
functional_case_attachment.file_id.not_blank=File ID cannot be empty
#moduleFunctionalCaseFollow
functional_case_follow.case_id.not_blank=Function case ID cannot be empty
functional_case_follow.follow_id.not_blank=Follow ID cannot be empty
#moduleFunctionalCaseRelationshipEdge
functional_case_relationship_edge.id.not_blank=ID cannot be empty
functional_case_relationship_edge.source_id.length_range=The length of the source ID must be between 1 and 50
functional_case_relationship_edge.source_id.not_blank=Source ID cannot be empty
functional_case_relationship_edge.target_id.length_range=The length of the target ID must be between 1 and 50
functional_case_relationship_edge.target_id.not_blank=Target ID cannot be empty
functional_case_relationship_edge.graph_id.length_range=The length of the graph ID must be between 1 and 50
functional_case_relationship_edge.graph_id.not_blank=Graph ID cannot be empty
functional_case_relationship_edge.create_user.length_range=Creator length must be between 1 and 50
functional_case_relationship_edge.create_user.not_blank=Creator cannot be empty
#moduleFunctionalCaseTest
functional_case_test.id.not_blank=ID cannot be empty
functional_case_test.functional_case_id.length_range=The length of the function case ID must be between 1 and 50
functional_case_test.functional_case_id.not_blank=Function case ID cannot be empty
functional_case_test.test_id.length_range=The length of the test ID must be between 1 and 50
functional_case_test.test_id.not_blank=Test ID cannot be empty
functional_case_test.test_type.length_range=The length of the test type must be between 1 and 64
functional_case_test.test_type.not_blank=Test type cannot be empty
#moduleMinderExtraNode
minder_extra_node.id.not_blank=ID cannot be empty
minder_extra_node.parent_id.length_range=The length of the parent node ID must be between 1 and 50
minder_extra_node.parent_id.not_blank=Parent node ID cannot be empty
minder_extra_node.group_id.length_range=The length of the group ID must be between 1 and 50
minder_extra_node.group_id.not_blank=Group ID cannot be empty
minder_extra_node.type.length_range=The length of the node type must be between 1 and 30
minder_extra_node.type.not_blank=Node type cannot be empty
#moduleCaseReview
case_review.id.not_blank=ID cannot be empty
case_review.name.length_range=The name length must be between 1 and 200
case_review.name.not_blank=Name cannot be empty
case_review.status.length_range=The length of the review status must be between 1 and 64
case_review.status.not_blank=Review status cannot be empty
case_review.project_id.length_range=The length of the project ID must be between 1 and 50
case_review.project_id.not_blank=Project ID cannot be empty
case_review.create_user.length_range=Creator length must be between 1 and 50
case_review.create_user.not_blank=Creator cannot be empty
case_review.review_pass_rule.length_range=The length of the review rule must be between 1 and 64
case_review.review_pass_rule.not_blank=Review rule cannot be empty
#moduleCaseReviewUser
case_review_user.review_id.not_blank=Review ID cannot be empty
case_review_user.user_id.not_blank=Reviewer ID cannot be empty
#moduleCaseReviewFunctionalCase
case_review_functional_case.id.not_blank=ID cannot be empty
case_review_functional_case.review_id.length_range=The length of the review ID must be between 1 and 50
case_review_functional_case.review_id.not_blank=Review ID cannot be empty
case_review_functional_case.case_id.length_range=The length of the use case ID must be between 1 and 50
case_review_functional_case.case_id.not_blank=The use case ID cannot be empty
case_review_functional_case.status.length_range=The length of the review status must be between 1 and 64
case_review_functional_case.status.not_blank=Review status cannot be empty
case_review_functional_case.create_user.length_range=Creator length must be between 1 and 50
case_review_functional_case.create_user.not_blank=Creator cannot be empty
case_review_functional_case.deleted.length_range=The length of whether the associated use case is placed in the recycle bin must be between 1 and 1
case_review_functional_case.deleted.not_blank=Whether the associated use case is placed in the recycle bin cannot be empty
#moduleCaseReviewFunctionalCaseUser
case_review_functional_case_user.case_id.length_range=The ID length of the functional use case and review intermediate table must be between 1 and 50
case_review_functional_case_user.case_id.not_blank=The ID of the functional use case and review intermediate table cannot be empty
case_review_functional_case_user.review_id.length_range=The length of the review ID must be between 1 and 50
case_review_functional_case_user.review_id.not_blank=Review ID cannot be empty
case_review_functional_case_user.user_id.length_range=Reviewer ID length must be between 1 and 50
case_review_functional_case_user.user_id.not_blank=Reviewer ID cannot be empty
#moduleCaseReviewFollow
case_review_follow.review_id.not_blank=Review ID cannot be empty
case_review_follow.follow_id.not_blank=follower cannot be empty
#moduleCustomFieldTestCase
custom_field_test_case.resource_id.not_blank=Resource ID cannot be empty
custom_field_test_case.field_id.not_blank=Field ID cannot be empty

View File

@ -47,3 +47,75 @@ functional_case_module.pos.length_range=同一节点下的顺序长度必须在1
functional_case_module.pos.not_blank=同一节点下的顺序不能为空 functional_case_module.pos.not_blank=同一节点下的顺序不能为空
functional_case_module.create_user.length_range=创建人长度必须在1-50之间 functional_case_module.create_user.length_range=创建人长度必须在1-50之间
functional_case_module.create_user.not_blank=创建人不能为空 functional_case_module.create_user.not_blank=创建人不能为空
#moduleFunctionalCaseAttachment
functional_case_attachment.functional_case_id.not_blank=功能用例ID不能为空
functional_case_attachment.file_id.not_blank=文件的ID不能为空
#moduleFunctionalCaseFollow
functional_case_follow.case_id.not_blank=功能用例ID不能为空
functional_case_follow.follow_id.not_blank=关注人ID不能为空
#moduleFunctionalCaseRelationshipEdge
functional_case_relationship_edge.id.not_blank=ID不能为空
functional_case_relationship_edge.source_id.length_range=源节点的ID长度必须在1-50之间
functional_case_relationship_edge.source_id.not_blank=源节点的ID不能为空
functional_case_relationship_edge.target_id.length_range=目标节点的ID长度必须在1-50之间
functional_case_relationship_edge.target_id.not_blank=目标节点的ID不能为空
functional_case_relationship_edge.graph_id.length_range=所属关系图的ID长度必须在1-50之间
functional_case_relationship_edge.graph_id.not_blank=所属关系图的ID不能为空
functional_case_relationship_edge.create_user.length_range=创建人长度必须在1-50之间
functional_case_relationship_edge.create_user.not_blank=创建人不能为空
#moduleFunctionalCaseTest
functional_case_test.id.not_blank=ID不能为空
functional_case_test.functional_case_id.length_range=功能用例ID长度必须在1-50之间
functional_case_test.functional_case_id.not_blank=功能用例ID不能为空
functional_case_test.test_id.length_range=其他类型用例ID长度必须在1-50之间
functional_case_test.test_id.not_blank=其他类型用例ID不能为空
functional_case_test.test_type.length_range=用例类型长度必须在1-64之间
functional_case_test.test_type.not_blank=用例类型不能为空
#moduleMinderExtraNode
minder_extra_node.id.not_blank=ID不能为空
minder_extra_node.parent_id.length_range=父节点的ID长度必须在1-50之间
minder_extra_node.parent_id.not_blank=父节点的ID不能为空
minder_extra_node.group_id.length_range=项目ID长度必须在1-50之间
minder_extra_node.group_id.not_blank=项目ID不能为空
minder_extra_node.type.length_range=类型长度必须在1-30之间
minder_extra_node.type.not_blank=类型不能为空
#moduleCaseReview
case_review.id.not_blank=ID不能为空
case_review.name.length_range=名称长度必须在1-200之间
case_review.name.not_blank=名称不能为空
case_review.status.length_range=评审状态长度必须在1-64之间
case_review.status.not_blank=评审状态不能为空
case_review.project_id.length_range=项目ID长度必须在1-50之间
case_review.project_id.not_blank=项目ID不能为空
case_review.create_user.length_range=创建人长度必须在1-50之间
case_review.create_user.not_blank=创建人不能为空
case_review.review_pass_rule.length_range=评审规则长度必须在1-64之间
case_review.review_pass_rule.not_blank=评审规则不能为空
#moduleCaseReviewUser
case_review_user.review_id.not_blank=评审ID不能为空
case_review_user.user_id.not_blank=评审人ID不能为空
#moduleCaseReviewFunctionalCase
case_review_functional_case.id.not_blank=ID不能为空
case_review_functional_case.review_id.length_range=评审ID长度必须在1-50之间
case_review_functional_case.review_id.not_blank=评审ID不能为空
case_review_functional_case.case_id.length_range=用例ID长度必须在1-50之间
case_review_functional_case.case_id.not_blank=用例ID不能为空
case_review_functional_case.status.length_range=评审状态长度必须在1-64之间
case_review_functional_case.status.not_blank=评审状态不能为空
case_review_functional_case.create_user.length_range=创建人长度必须在1-50之间
case_review_functional_case.create_user.not_blank=创建人不能为空
case_review_functional_case.deleted.length_range=关联的用例是否放入回收站长度必须在1-1之间
case_review_functional_case.deleted.not_blank=关联的用例是否放入回收站不能为空
#moduleCaseReviewFunctionalCaseUser
case_review_functional_case_user.case_id.length_range=功能用例和评审中间表的ID长度必须在1-50之间
case_review_functional_case_user.case_id.not_blank=功能用例和评审中间表的ID不能为空
case_review_functional_case_user.review_id.length_range=评审ID长度必须在1-50之间
case_review_functional_case_user.review_id.not_blank=评审ID不能为空
case_review_functional_case_user.user_id.length_range=评审人ID长度必须在1-50之间
case_review_functional_case_user.user_id.not_blank=评审人ID不能为空
#moduleCaseReviewFollow
case_review_follow.review_id.not_blank=评审ID不能为空
case_review_follow.follow_id.not_blank=关注人不能为空
#moduleCustomFieldTestCase
custom_field_test_case.resource_id.not_blank=资源ID不能为空
custom_field_test_case.field_id.not_blank=字段ID不能为空

View File

@ -47,3 +47,75 @@ functional_case_module.pos.length_range=同一節點下的順序長度必須在1
functional_case_module.pos.not_blank=同一節點下的順序不能為空 functional_case_module.pos.not_blank=同一節點下的順序不能為空
functional_case_module.create_user.length_range=創建人長度必須在1-50之間 functional_case_module.create_user.length_range=創建人長度必須在1-50之間
functional_case_module.create_user.not_blank=創建人不能為空 functional_case_module.create_user.not_blank=創建人不能為空
#moduleFunctionalCaseAttachment
functional_case_attachment.functional_case_id.not_blank=功能用例ID不能爲空
functional_case_attachment.file_id.not_blank=文件ID不能爲空
#moduleFunctionalCaseFollow
functional_case_follow.case_id.not_blank=功能用例ID不能爲空
functional_case_follow.follow_id.not_blank=關注人ID不能爲空
#moduleFunctionalCaseRelationshipEdge
functional_case_relationship_edge.id.not_blank=ID不能為空
functional_case_relationship_edge.source_id.length_range=源節點的ID長度必須在1-50之间
functional_case_relationship_edge.source_id.not_blank=源節點的ID不能爲空
functional_case_relationship_edge.target_id.length_range=目標節點的ID長度必須在1-50之間
functional_case_relationship_edge.target_id.not_blank=目標節點的ID不能為空
functional_case_relationship_edge.graph_id.length_range=所屬關係圖的ID長度必須在1-50之間
functional_case_relationship_edge.graph_id.not_blank=所屬關係圖的ID不能為空
functional_case_relationship_edge.create_user.length_range=創建人長度必須在1-50之間
functional_case_relationship_edge.create_user.not_blank=創建人不能為空
#moduleFunctionalCaseTest
functional_case_test.id.not_blank=ID不能為空
functional_case_test.functional_case_id.length_range=功能用例ID長度必須在1-50之間
functional_case_test.functional_case_id.not_blank=功能用例ID不能為空
functional_case_test.test_id.length_range=其他類型用例ID長度必須在1-50之間
functional_case_test.test_id.not_blank=其他類型用例ID不能為空
functional_case_test.test_type.length_range=用例類型長度必須在1-64之間
functional_case_test.test_type.not_blank=用例類型不能為空
#moduleMinderExtraNode
minder_extra_node.id.not_blank=ID不能為空
minder_extra_node.parent_id.length_range=父節點的ID長度必須在1-50之間
minder_extra_node.parent_id.not_blank=父節點的ID不能為空
minder_extra_node.group_id.length_range=項目ID長度必須在1-50之間
minder_extra_node.group_id.not_blank=項目ID不能為空
minder_extra_node.type.length_range=類型長度必須在1-30之間
minder_extra_node.type.not_blank=類型不能為空
#moduleCaseReview
case_review.id.not_blank=ID不能為空
case_review.name.length_range=名稱長度必須在1-200之間
case_review.name.not_blank=名稱不能為空
case_review.status.length_range=評審狀態長度必須在1-64之間
case_review.status.not_blank=評審狀態不能為空
case_review.project_id.length_range=項目ID長度必須在1-50之間
case_review.project_id.not_blank=項目ID不能為空
case_review.create_user.length_range=創建人長度必須在1-50之間
case_review.create_user.not_blank=創建人不能為空
case_review.review_pass_rule.length_range=評審規則長度必須在1-64之間
case_review.review_pass_rule.not_blank=評審規則不能為空
#moduleCaseReviewUser
case_review_user.review_id.not_blank=評審ID不能為空
case_review_user.user_id.not_blank=評審人ID不能為空
#moduleCaseReviewFunctionalCase
case_review_functional_case.id.not_blank=ID不能為空
case_review_functional_case.review_id.length_range=評審ID長度必須在1-50之間
case_review_functional_case.review_id.not_blank=評審ID不能為空
case_review_functional_case.case_id.length_range=用例ID長度必須在1-50之間
case_review_functional_case.case_id.not_blank=用例ID不能為空
case_review_functional_case.status.length_range=評審狀態長度必須在1-64之間
case_review_functional_case.status.not_blank=評審狀態不能為空
case_review_functional_case.create_user.length_range=創建人長度必須在1-50之間
case_review_functional_case.create_user.not_blank=創建人不能為空
case_review_functional_case.deleted.length_range=關聯的用例是否放入回收站長度必須在1-1之間
case_review_functional_case.deleted.not_blank=關聯的用例是否放入回收站不能為空
#moduleCaseReviewFunctionalCaseUser
case_review_functional_case_user.case_id.length_range=功能用例和評審中間錶的ID長度必須在1-50之間
case_review_functional_case_user.case_id.not_blank=功能用例和評審中間錶的ID不能為空
case_review_functional_case_user.review_id.length_range=評審ID長度必須在1-50之間
case_review_functional_case_user.review_id.not_blank=評審ID不能為空
case_review_functional_case_user.user_id.length_range=評審人ID長度必須在1-50之間
case_review_functional_case_user.user_id.not_blank=評審人ID不能為空
#moduleCaseReviewFollow
case_review_follow.review_id.not_blank=評審ID不能為空
case_review_follow.follow_id.not_blank=關注人不能為空
#moduleCustomFieldTestCase
custom_field_test_case.resource_id.not_blank=資源ID不能為空
custom_field_test_case.field_id.not_blank=字段ID不能為空