refactor(缺陷管理): 优化新增缺陷传参

This commit is contained in:
song-cc-rock 2024-10-25 14:07:32 +08:00 committed by 刘瑞斌
parent 3b35cc1e67
commit d639a12efc
4 changed files with 8 additions and 2 deletions

View File

@ -128,6 +128,9 @@ public class ApiDocShareController {
@Operation(summary = "接口测试-定义-分享-导出")
@Parameter(name = "type", description = "导出类型", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED))
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());
}

View File

@ -14,4 +14,7 @@ public class ApiDocShareExportRequest extends ApiDefinitionBatchExportRequest {
@Schema(description = "分享ID", requiredMode = Schema.RequiredMode.REQUIRED)
private String shareId;
@Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED)
private String orgId;
}

View File

@ -61,7 +61,7 @@ export interface BugEditCustomFieldItem {
name: string;
type: string | undefined;
value: string;
text?: string[] | null; // 消息通知文本提示
text?: string | null; // 消息通知文本提示
}
export type BugBatchUpdateFiledType = 'single_select' | 'multiple_select' | 'tags' | 'input' | 'user_selector' | 'date';
export interface BugBatchUpdateFiledForm {

View File

@ -88,7 +88,7 @@ export function getCurrentText(item: FormRuleItem, currentCustomFields: CustomFi
: currentItemOptions.filter((e: any) => e.value === item.value);
const optionText = filteredOptions.map((option) => option.text);
return optionText;
return JSON.stringify(optionText);
}
return null;
}