refactor(项目设置): 优化版本功能接口

This commit is contained in:
song-cc-rock 2023-10-19 10:52:24 +08:00 committed by Craftsman
parent cd5694ddad
commit 2984c54917
4 changed files with 4 additions and 2 deletions

View File

@ -151,7 +151,7 @@ INSERT INTO template_custom_field(id, field_id, template_id, required, pos, api_
VALUES(UUID_SHORT(), (select id from custom_field where name = 'functional_priority'), (select id from template where name = 'functional_default'), 1, 0, NULL, NULL);
-- 初始化默认项目版本
INSERT INTO project_version (id, project_id, name, description, status, latest, publish_time, start_time, end_time, create_time, create_user) VALUES (UUID_SHORT(), '100001100001', 'v1.0', NULL, 'open', 0, NULL, NULL, NULL, UNIX_TIMESTAMP() * 1000, 'admin');
INSERT INTO project_version (id, project_id, name, description, status, latest, publish_time, start_time, end_time, create_time, create_user) VALUES (UUID_SHORT(), '100001100001', 'v1.0', NULL, 'open', 1, UNIX_TIMESTAMP() * 1000, UNIX_TIMESTAMP() * 1000, UNIX_TIMESTAMP() * 1000, UNIX_TIMESTAMP() * 1000, 'admin');
-- 初始化项目功能用例字段
INSERT INTO custom_field(id, name, scene, `type`, remark, internal, scope_type, create_time, update_time, create_user, scope_id, ref_id)

View File

@ -147,6 +147,7 @@ project.version.exist=Version exist
project.version.not_exist=Version not exist
project.version.resource_exist=There is resource data associated with the version, please delete the data first
project.version.only=Can be closed when there is only one version
project.version.latest.no_delete=The latest version cannot be deleted
#environment datasource
environment_datasource.id.not_blank=ID is required
environment_datasource.driver.not_blank=Driver is required

View File

@ -147,6 +147,7 @@ project.version.exist=版本已存在
project.version.not_exist=版本不存在
project.version.resource_exist=版本号下存在业务数据,请先删除该版本的业务数据
project.version.only=只有一个版本号时可关闭
project.version.latest.no_delete=最新版本不可删除
#environment datasource
environment_datasource.id.not_blank=ID不能为空
environment_datasource.driver.not_blank=驱动不能为空

View File

@ -147,6 +147,7 @@ project.version.exist=版本已存在
project.version.not_exist=版本不存在
project.version.resource_exist=版本號下存在業務數據,請先刪除該版本的業務數據
project.version.only=只有一個版本號時可關閉
project.version.latest.no_delete=最新版本不可刪除
#environment datasource
environment_datasource.id.not_blank=ID不能為空
environment_datasource.driver.not_blank=驅動不能為空
@ -154,7 +155,6 @@ environment_datasource.driverId.not_blank=驅動ID不能為空
environment_datasource.dbUrl.not_blank=數據庫地址不能為空
environment_name_is_null=環境名稱不能為空
environment_config_is_null=環境配置不能為空
# message
message.test_plan_task=測試計劃
message.schedule_task=定時任務