fix(项目管理): 优化缺陷模板类型命名
This commit is contained in:
parent
887cc6fcb3
commit
51ff627911
|
@ -39,7 +39,7 @@ public class ProjectCustomFieldController {
|
|||
@RequiresPermissions(PermissionConstants.PROJECT_CUSTOM_FIELD_READ)
|
||||
public List<CustomField> list(@Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@PathVariable String projectId,
|
||||
@Schema(description = "模板的使用场景(FUNCTIONAL,ISSUE,API,UI)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(description = "模板的使用场景(FUNCTIONAL,BUG,API,UI)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@PathVariable String scene) {
|
||||
return projectCustomFieldService.list(projectId, scene);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ public class ProjectTemplateController {
|
|||
@RequiresPermissions(PermissionConstants.PROJECT_TEMPLATE_READ)
|
||||
public List<Template> list(@Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@PathVariable String projectId,
|
||||
@Schema(description = "模板的使用场景(FUNCTIONAL,ISSUE,API,UI)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(description = "模板的使用场景(FUNCTIONAL,BUG,API,UI)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@PathVariable String scene) {
|
||||
return projectTemplateservice.list(projectId, scene);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ public class ModuleDTO implements Serializable {
|
|||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "模块", allowableValues = {"WORKSTATION", "TEST_PLAN", "UI", "PERFORMANCE_TEST", "API", "CASE", "ISSUE"})
|
||||
@Schema(description = "模块", allowableValues = {"WORKSTATION", "TEST_PLAN", "UI", "PERFORMANCE_TEST", "API", "CASE", "BUG"})
|
||||
private String module;
|
||||
|
||||
@Schema(description = "是否启用", allowableValues = {"true", "false"})
|
||||
|
|
|
@ -21,6 +21,6 @@ public class ProjectApplicationRequest implements Serializable {
|
|||
@NotBlank(message = "{project_application.project_id.not_blank}")
|
||||
private String projectId;
|
||||
|
||||
@Schema(description = "配置类型列表", allowableValues = {"WORKSTATION", "TEST_PLAN", "UI", "PERFORMANCE_TEST", "API", "CASE", "ISSUE"}, requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(description = "配置类型列表", allowableValues = {"WORKSTATION", "TEST_PLAN", "UI", "PERFORMANCE_TEST", "API", "CASE", "BUG"}, requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String type;
|
||||
}
|
||||
|
|
|
@ -303,7 +303,7 @@ public class BaseTemplateService {
|
|||
* @param scopeId
|
||||
* @param scopeType
|
||||
*/
|
||||
public void initIssueDefaultTemplate(String scopeId, TemplateScopeType scopeType) {
|
||||
public void initBugDefaultTemplate(String scopeId, TemplateScopeType scopeType) {
|
||||
this.initDefaultTemplate(scopeId, "bug_default", scopeType, TemplateScene.BUG);
|
||||
}
|
||||
public void initApiDefaultTemplate(String scopeId, TemplateScopeType scopeType) {
|
||||
|
|
|
@ -62,7 +62,7 @@ public class CreateTemplateResourceService implements CreateProjectResourceServi
|
|||
baseTemplateService.initFunctionalDefaultTemplate(projectId, TemplateScopeType.PROJECT);
|
||||
break;
|
||||
case BUG:
|
||||
baseTemplateService.initIssueDefaultTemplate(projectId, TemplateScopeType.PROJECT);
|
||||
baseTemplateService.initBugDefaultTemplate(projectId, TemplateScopeType.PROJECT);
|
||||
break;
|
||||
case API:
|
||||
baseTemplateService.initApiDefaultTemplate(projectId, TemplateScopeType.PROJECT);
|
||||
|
|
|
@ -32,8 +32,6 @@ public class OrganizationTemplateService extends BaseTemplateService {
|
|||
@Resource
|
||||
private BaseProjectMapper baseProjectMapper;
|
||||
@Resource
|
||||
private BaseCustomFieldService baseCustomFieldService;
|
||||
@Resource
|
||||
protected ExtOrganizationTemplateMapper extOrganizationTemplateMapper;
|
||||
@Resource
|
||||
protected BaseOrganizationParameterService baseOrganizationParameterService;
|
||||
|
|
Loading…
Reference in New Issue