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

[servicecomb-toolkit] branch master updated: SCB-1486 Fix bug that generated public class name is inconsistent with the filename

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 61ab4ea  SCB-1486 Fix bug that generated public class name is inconsistent with the filename
     new 4969153  Merge pull request #29 from kakulisen/master
61ab4ea is described below

commit 61ab4eaa438f0e74755dffdd18e79149b2387f00
Author: kakulisen <18...@163.com>
AuthorDate: Tue Sep 10 07:14:49 2019 +0800

    SCB-1486 Fix bug that generated public class name is inconsistent with the filename
    
    Signed-off-by: kakulisen <18...@163.com>
---
 codegen/src/main/resources/ServiceComb/consumer/apiConsumer.mustache | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/codegen/src/main/resources/ServiceComb/consumer/apiConsumer.mustache b/codegen/src/main/resources/ServiceComb/consumer/apiConsumer.mustache
index 8a4d434..fbf470c 100755
--- a/codegen/src/main/resources/ServiceComb/consumer/apiConsumer.mustache
+++ b/codegen/src/main/resources/ServiceComb/consumer/apiConsumer.mustache
@@ -21,7 +21,7 @@ import org.springframework.web.client.RestTemplate;
 import org.springframework.web.multipart.MultipartFile;
 
 {{#operations}}
-public class {{classname}}Consumer {
+public class {{classname}} {
 {{#operation}}
 
   public ResponseEntity<{{>returnTypes}}> {{operationId}}({{#allParams}}{{>consumer/queryParamsConsumer}}{{>consumer/pathParamsConsumer}}{{>consumer/headerParamsConsumer}}{{>consumer/bodyParamsConsumer}}{{>consumer/formParamsConsumer}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) {