refactor(缺陷管理): 优化新增缺陷传参
This commit is contained in:
parent
3b35cc1e67
commit
d639a12efc
|
@ -128,6 +128,9 @@ public class ApiDocShareController {
|
||||||
@Operation(summary = "接口测试-定义-分享-导出")
|
@Operation(summary = "接口测试-定义-分享-导出")
|
||||||
@Parameter(name = "type", description = "导出类型", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED))
|
@Parameter(name = "type", description = "导出类型", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED))
|
||||||
public String export(@RequestBody ApiDocShareExportRequest request, @PathVariable String type) {
|
public String export(@RequestBody ApiDocShareExportRequest request, @PathVariable String type) {
|
||||||
|
List<ProtocolDTO> protocols = apiTestService.getProtocols(request.getOrgId());
|
||||||
|
List<String> protocolList = protocols.stream().map(ProtocolDTO::getProtocol).toList();
|
||||||
|
request.setProtocols(protocolList);
|
||||||
return apiDocShareService.export(request, type, SessionUtils.getUserId());
|
return apiDocShareService.export(request, type, SessionUtils.getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,7 @@ public class ApiDocShareExportRequest extends ApiDefinitionBatchExportRequest {
|
||||||
|
|
||||||
@Schema(description = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
private String shareId;
|
private String shareId;
|
||||||
|
|
||||||
|
@Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private String orgId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ export interface BugEditCustomFieldItem {
|
||||||
name: string;
|
name: string;
|
||||||
type: string | undefined;
|
type: string | undefined;
|
||||||
value: string;
|
value: string;
|
||||||
text?: string[] | null; // 消息通知文本提示
|
text?: string | null; // 消息通知文本提示
|
||||||
}
|
}
|
||||||
export type BugBatchUpdateFiledType = 'single_select' | 'multiple_select' | 'tags' | 'input' | 'user_selector' | 'date';
|
export type BugBatchUpdateFiledType = 'single_select' | 'multiple_select' | 'tags' | 'input' | 'user_selector' | 'date';
|
||||||
export interface BugBatchUpdateFiledForm {
|
export interface BugBatchUpdateFiledForm {
|
||||||
|
|
|
@ -88,7 +88,7 @@ export function getCurrentText(item: FormRuleItem, currentCustomFields: CustomFi
|
||||||
: currentItemOptions.filter((e: any) => e.value === item.value);
|
: currentItemOptions.filter((e: any) => e.value === item.value);
|
||||||
const optionText = filteredOptions.map((option) => option.text);
|
const optionText = filteredOptions.map((option) => option.text);
|
||||||
|
|
||||||
return optionText;
|
return JSON.stringify(optionText);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue