Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 70ec126

Browse files
authored
Merge pull request #1014 from zlxs1317169/dubboword
fix dubbo word template bug
2 parents 58efb5e + c636671 commit 70ec126

File tree

1 file changed

+12
-102
lines changed

1 file changed

+12
-102
lines changed

src/main/resources/template/dubbo/DubboAllInOneWordTemplate.xml

Lines changed: 12 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,11 @@
398398
399399
<%}%>
400400
401+
401402
<!-- 接口基本参数, url 作者 请求方式 等等 -->
402403
403404
405+
404406
<%if(isNotEmpty(api.author)){%>
405407
<w:p>
406408
<w:pPr>
@@ -419,6 +421,9 @@
419421
</w:p>
420422
<%}%>
421423
424+
425+
426+
422427
<!-- url-->
423428
<w:p>
424429
<w:pPr>
@@ -455,6 +460,7 @@
455460
</w:p>
456461
457462
463+
458464
<%if(isNotEmpty(doc.name)){%>
459465
<w:p>
460466
<w:pPr>
@@ -494,7 +500,6 @@
494500
495501
496502
497-
498503
<!-- body参数 -->
499504
<%if(isNotEmpty(doc.requestParams)){%>
500505
<w:p>
@@ -658,31 +663,6 @@
658663
</w:r>
659664
</w:p>
660665
</w:tc>
661-
<w:tc>
662-
<w:tcPr>
663-
<w:tcW w:w="2700" w:type="dxa"/>
664-
<w:tcBorders>
665-
<w:top w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
666-
<w:left w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
667-
<w:bottom w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
668-
<w:right w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
669-
</w:tcBorders>
670-
<w:shd w:val="clear" w:color="auto" w:fill="F8F8F8"/>
671-
</w:tcPr>
672-
<w:p>
673-
<w:pPr>
674-
<w:pStyle w:val="24"/>
675-
<w:jc w:val="left"/>
676-
</w:pPr>
677-
<w:r>
678-
<w:rPr>
679-
<w:b/>
680-
<w:bCs/>
681-
</w:rPr>
682-
<w:t>Example</w:t>
683-
</w:r>
684-
</w:p>
685-
</w:tc>
686666
</w:tr>
687667
<%
688668
for(param in doc.requestParams){
@@ -730,7 +710,7 @@
730710
<w:jc w:val="left"/>
731711
</w:pPr>
732712
<w:r>
733-
<w:t>${param.type}</w:t>
713+
<w:t>${wordXmlEscape(param.type)}</w:t>
734714
</w:r>
735715
</w:p>
736716
</w:tc>
@@ -753,7 +733,7 @@
753733
<w:jc w:val="left"/>
754734
</w:pPr>
755735
<w:r>
756-
<w:t>${param.required}</w:t>
736+
<w:t>${wordXmlEscape(param.required)}</w:t>
757737
</w:r>
758738
</w:p>
759739
</w:tc>
@@ -799,30 +779,7 @@
799779
<w:jc w:val="left"/>
800780
</w:pPr>
801781
<w:r>
802-
<w:t>${param.version}</w:t>
803-
</w:r>
804-
</w:p>
805-
</w:tc>
806-
<w:tc>
807-
<w:tcPr>
808-
<w:tcW w:w="2700" w:type="dxa"/>
809-
<w:tcBorders>
810-
<w:top w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
811-
<w:left w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
812-
<w:bottom w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
813-
<w:right w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
814-
</w:tcBorders>
815-
<%if (paramLP.index % 2 == 0) {%>
816-
<w:shd w:val="clear" w:color="auto" w:fill="F8F8F8"/>
817-
<%}%>
818-
</w:tcPr>
819-
<w:p>
820-
<w:pPr>
821-
<w:pStyle w:val="24"/>
822-
<w:jc w:val="left"/>
823-
</w:pPr>
824-
<w:r>
825-
<w:t>${param.value}</w:t>
782+
<w:t>${wordXmlEscape(param.version)}</w:t>
826783
</w:r>
827784
</w:p>
828785
</w:tc>
@@ -833,6 +790,7 @@
833790
834791
835792
793+
836794
<!-- 响应参数 -->
837795
<%if(isNotEmpty(doc.responseParams)){%>
838796
<w:p>
@@ -967,31 +925,6 @@
967925
</w:r>
968926
</w:p>
969927
</w:tc>
970-
<w:tc>
971-
<w:tcPr>
972-
<w:tcW w:w="2700" w:type="dxa"/>
973-
<w:tcBorders>
974-
<w:top w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
975-
<w:left w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
976-
<w:bottom w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
977-
<w:right w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
978-
</w:tcBorders>
979-
<w:shd w:val="clear" w:color="auto" w:fill="F8F8F8"/>
980-
</w:tcPr>
981-
<w:p>
982-
<w:pPr>
983-
<w:pStyle w:val="24"/>
984-
<w:jc w:val="left"/>
985-
</w:pPr>
986-
<w:r>
987-
<w:rPr>
988-
<w:b/>
989-
<w:bCs/>
990-
</w:rPr>
991-
<w:t>Example</w:t>
992-
</w:r>
993-
</w:p>
994-
</w:tc>
995928
</w:tr>
996929
<%
997930
for(param in doc.responseParams){
@@ -1037,7 +970,7 @@
1037970
<w:jc w:val="left"/>
1038971
</w:pPr>
1039972
<w:r>
1040-
<w:t>${param.type}</w:t>
973+
<w:t>${wordXmlEscape(param.type)}</w:t>
1041974
</w:r>
1042975
</w:p>
1043976
</w:tc>
@@ -1082,30 +1015,7 @@
10821015
<w:jc w:val="left"/>
10831016
</w:pPr>
10841017
<w:r>
1085-
<w:t>${param.version}</w:t>
1086-
</w:r>
1087-
</w:p>
1088-
</w:tc>
1089-
<w:tc>
1090-
<w:tcPr>
1091-
<w:tcW w:w="2700" w:type="dxa"/>
1092-
<w:tcBorders>
1093-
<w:top w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
1094-
<w:left w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
1095-
<w:bottom w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
1096-
<w:right w:val="single" w:color="DFE2E5" w:sz="4" w:space="0"/>
1097-
</w:tcBorders>
1098-
<%if (paramLP.index % 2 == 0) {%>
1099-
<w:shd w:val="clear" w:color="auto" w:fill="F8F8F8"/>
1100-
<%}%>
1101-
</w:tcPr>
1102-
<w:p>
1103-
<w:pPr>
1104-
<w:pStyle w:val="24"/>
1105-
<w:jc w:val="left"/>
1106-
</w:pPr>
1107-
<w:r>
1108-
<w:t>${param.value}</w:t>
1018+
<w:t>${wordXmlEscape(param.version)}</w:t>
11091019
</w:r>
11101020
</w:p>
11111021
</w:tc>

0 commit comments

Comments
 (0)