From 2bee466f6d838cfe408106f598b01ef9a38e0faf Mon Sep 17 00:00:00 2001 From: caicloud-bot Date: Tue, 24 Nov 2020 10:57:29 +0800 Subject: [PATCH] fix(*): remove the Summary field in RPCAction struct (#395) Co-authored-by: iawia002 --- definition/rpc.go | 2 -- service/rpc/builder.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/definition/rpc.go b/definition/rpc.go index 7ad307f0..8ae74faf 100644 --- a/definition/rpc.go +++ b/definition/rpc.go @@ -67,8 +67,6 @@ type RPCAction struct { Parameters []Parameter // Results describes function retrun values. Results []Result - // Summary is a one-line brief description of this definition. - Summary string // Description describes the API handler. Description string // Examples contains many examples for the API handler. diff --git a/service/rpc/builder.go b/service/rpc/builder.go index ddc6263b..ab388e8c 100644 --- a/service/rpc/builder.go +++ b/service/rpc/builder.go @@ -140,7 +140,7 @@ func (b *builder) genDefinition(action definition.RPCAction, consumes []string, Function: action.Function, Parameters: action.Parameters, Results: action.Results, - Summary: action.Summary, + Summary: action.Name, Description: action.Description, Examples: action.Examples, }