Skip to content

Commit ff51381

Browse files
committed
[增加]1. 增加字段描述
1 parent 9bb0cd1 commit ff51381

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ProtoExport/ProtoBuffServerHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
7171
sb.AppendLine($"\t\t/// {operationField.Description}");
7272
sb.AppendLine($"\t\t/// </summary>");
7373
sb.AppendLine($"\t\t[ProtoMember({operationField.Members})]");
74+
sb.AppendLine($"\t\t[System.ComponentModel.Description(\"{operationField.Description}\")]");
7475
if (operationField.IsRepeated)
7576
{
7677
sb.AppendLine($"\t\tpublic List<{operationField.Type}> {operationField.Name} {{ get; set; }} = new List<{operationField.Type}>();");

0 commit comments

Comments
 (0)