From 13cc3d7f86a97117cfb033416210dfe89eddfa46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=94=E6=B0=91=E5=B0=8F=E9=95=87?= <262610965@qq.com> Date: Wed, 11 Dec 2024 16:56:37 +0800 Subject: [PATCH] fix(generate-code): action_method_void.txt --- .../src/main/resources/generate/ts/action_method_void.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt b/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt index 6f55826de..7fd79bd23 100644 --- a/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt +++ b/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt @@ -8,17 +8,17 @@ * const ${bizDataName}: ${bizDataType} = ...; * ${actionSimpleName}.of${actionMethodName}(${bizDataName}); */ - static of${actionMethodName}(${bizDataName}: ${bizDataType}): RequestCommand { + static of${actionMethodName}(${bizDataName}: ${protoPrefix}${bizDataType}): RequestCommand { <% if (internalBizDataType) { %> return RequestCommand.of${sdkMethodName!}(this.${memberCmdName}, ${bizDataName}).execute(); <% } else if (bizDataTypeIsList) { %> const dataList = ${bizDataName}.map(o => { - return toBinary(${actualTypeName}Schema, o); + return toBinary(${protoPrefix}${actualTypeName}Schema, o); }); return RequestCommand.of${sdkMethodName}(this.${memberCmdName}, dataList).execute(); <% } else { %> - const data = toBinary(${bizDataType}Schema, ${bizDataName}); + const data = toBinary(${protoPrefix}${bizDataType}Schema, ${bizDataName}); const requestCommand = RequestCommand.of(this.${memberCmdName}, data); requestCommand.dataSource = ${bizDataName}; return requestCommand.execute();