rename APIClient to ApiClient

This commit is contained in:
wing328
2015-05-28 10:51:36 +08:00
parent 2c12312b97
commit 1a868abdfa
11 changed files with 14 additions and 18 deletions

View File

@@ -76,7 +76,7 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping.put("array", "ARRAY");
typeMapping.put("map", "HASH");
supportingFiles.add(new SupportingFile("APIClient.mustache", "lib/WWW/" + invokerPackage, "APIClient.pm"));
supportingFiles.add(new SupportingFile("ApiClient.mustache", "lib/WWW/" + invokerPackage, "ApiClient.pm"));
supportingFiles.add(new SupportingFile("Configuration.mustache", "lib/WWW/" + invokerPackage, "Configuration.pm"));
supportingFiles.add(new SupportingFile("BaseObject.mustache", "lib/WWW/" + invokerPackage, "Object/BaseObject.pm"));
}

View File

@@ -1,4 +1,4 @@
package WWW::{{invokerPackage}}::APIClient;
package WWW::{{invokerPackage}}::ApiClient;
use strict;
use warnings;

View File

@@ -7,8 +7,6 @@ use utf8;
use Log::Any qw($log);
use Carp;
use WWW::{{invokerPackage}}::APIClient;
# class/static variables
our $api_client;
our $http_timeout = 180;

View File

@@ -27,7 +27,7 @@ use Exporter;
use Carp qw( croak );
use Log::Any qw($log);
use WWW::{{invokerPackage}}::APIClient;
use WWW::{{invokerPackage}}::ApiClient;
use WWW::{{invokerPackage}}::Configuration;
{{#operations}}
@@ -38,7 +38,7 @@ our @EXPORT_OK = qw(
sub new {
my $class = shift;
my $default_api_client = $WWW::{{invokerPackage}}::Configuration::api_client ? $WWW::{{invokerPackage}}::Configuration::api_client : WWW::{{invokerPackage}}::APIClient->new;
my $default_api_client = $WWW::{{invokerPackage}}::Configuration::api_client ? $WWW::{{invokerPackage}}::Configuration::api_client : WWW::{{invokerPackage}}::ApiClient->new;
my (%self) = (
'api_client' => $default_api_client,
@_