Skip to content

Commit

Permalink
[增加]1. 增加字段描述
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Jan 24, 2025
1 parent 9bb0cd1 commit ff51381
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ProtoExport/ProtoBuffServerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public void Run(MessageInfoList messageInfoList, string outputPath, string names
sb.AppendLine($"\t\t/// {operationField.Description}");
sb.AppendLine($"\t\t/// </summary>");
sb.AppendLine($"\t\t[ProtoMember({operationField.Members})]");
sb.AppendLine($"\t\t[System.ComponentModel.Description(\"{operationField.Description}\")]");
if (operationField.IsRepeated)
{
sb.AppendLine($"\t\tpublic List<{operationField.Type}> {operationField.Name} {{ get; set; }} = new List<{operationField.Type}>();");
Expand Down

0 comments on commit ff51381

Please sign in to comment.