remove {{newLine}} and replace tab wtih 2 spaces

This commit is contained in:
William Cheng 2015-03-27 23:55:26 +08:00
parent 8b4a077f8a
commit bdd1d1621f
4 changed files with 36 additions and 36 deletions

View File

@ -12,10 +12,10 @@ class {{classname}}
{{#operation}}
{{newline}}
# {{summary}}
# {{notes}}{{newLine}}
{{#allParams}}{{^optional}}{{newLine}} # @param {{paramName}} {{description}}
{{/optional}}{{/allParams}}{{#allParams}}{{#optional}}{{newLine}} # @option opts [{{dataType}}] :{{baseName}} {{description}}
{{/optional}}{{/allParams}} # @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}{{newLine}}
# {{notes}}
{{#allParams}}{{^optional}} # @param {{paramName}} {{description}}
{{/optional}}{{/allParams}}{{#allParams}}{{#optional}} # @option opts [{{dataType}}] :{{baseName}} {{description}}
{{/optional}}{{/allParams}} # @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}
def self.{{nickname}} ({{#allParams}}{{paramName}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}}, {{/allParams}}opts={})
query_param_keys = [{{#queryParams}}:{{paramName}}{{#hasMore}},{{/hasMore}}{{/queryParams}}]
@ -61,10 +61,10 @@ class {{classname}}
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end
{{/bodyParam}}

View File

@ -52,10 +52,10 @@ class PetApi
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end
@ -112,10 +112,10 @@ class PetApi
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end

View File

@ -92,10 +92,10 @@ class StoreApi
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end

View File

@ -52,10 +52,10 @@ class UserApi
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end
@ -112,10 +112,10 @@ class UserApi
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end
@ -172,10 +172,10 @@ class UserApi
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end
@ -358,10 +358,10 @@ class UserApi
post_body = array
else
if body.respond_to?("to_body".to_sym)
post_body = body.to_body
else
post_body = body
end
post_body = body.to_body
else
post_body = body
end
end
end