You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/06/21 07:09:55 UTC

[servicecomb-toolkit] 39/49: format pojo template

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 28840512143d950c9b94caf116a29bf35435e847
Author: kakulisen <18...@163.com>
AuthorDate: Mon Jun 3 15:20:49 2019 +0800

    format pojo template
    
    Signed-off-by: kakulisen <18...@163.com>
---
 .../main/resources/ServiceComb/consumer/pojo/apiConsumer.mustache  | 1 +
 .../src/main/resources/ServiceComb/libraries/POJO/api.mustache     | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/code-generator/src/main/resources/ServiceComb/consumer/pojo/apiConsumer.mustache b/code-generator/src/main/resources/ServiceComb/consumer/pojo/apiConsumer.mustache
index 0465fc4..ab2d665 100755
--- a/code-generator/src/main/resources/ServiceComb/consumer/pojo/apiConsumer.mustache
+++ b/code-generator/src/main/resources/ServiceComb/consumer/pojo/apiConsumer.mustache
@@ -14,6 +14,7 @@ public class {{classname}}Consumer implements {{classname}}{
   private {{classname}} api;
 
 {{#operation}}
+
   @Override
   public {{>returnTypes}} {{operationId}}({{#allParams}}{{>consumer/queryParamsConsumer}}{{>consumer/pathParamsConsumer}}{{>consumer/headerParamsConsumer}}{{>consumer/bodyParamsConsumer}}{{>consumer/formParamsConsumer}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) {
 
diff --git a/code-generator/src/main/resources/ServiceComb/libraries/POJO/api.mustache b/code-generator/src/main/resources/ServiceComb/libraries/POJO/api.mustache
index fad66ca..2a076fc 100755
--- a/code-generator/src/main/resources/ServiceComb/libraries/POJO/api.mustache
+++ b/code-generator/src/main/resources/ServiceComb/libraries/POJO/api.mustache
@@ -10,8 +10,9 @@ import {{modelPackage}}.*;
 
 {{#operations}}
 public interface {{classname}} {
-    {{#operation}}
-     public {{>returnTypes}} {{operationId}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
-    {{/operation}}
+ {{#operation}}
+
+  public {{>returnTypes}} {{operationId}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
+ {{/operation}}
 }
 {{/operations}}
\ No newline at end of file