replace tabs with 4-space (#8757)

This commit is contained in:
William Cheng 2021-02-19 23:06:20 +08:00 committed by GitHub
parent d19bfebeda
commit 095019a6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 18 deletions

View File

@ -123,12 +123,14 @@ namespace {{packageName}}
//TODO: Or alternatively use the original Swagger contract that's included in the static files //TODO: Or alternatively use the original Swagger contract that's included in the static files
// c.SwaggerEndpoint("/openapi-original.json", "{{#appName}}{{{appName}}}{{/appName}}{{^appName}}{{packageName}}{{/appName}} Original"); // c.SwaggerEndpoint("/openapi-original.json", "{{#appName}}{{{appName}}}{{/appName}}{{^appName}}{{packageName}}{{/appName}} Original");
}){{/useSwashbuckle}};{{^useDefaultRouting}} }){{/useSwashbuckle}};
{{^useDefaultRouting}}
app.UseRouting(); app.UseRouting();
app.UseEndpoints(endpoints => app.UseEndpoints(endpoints =>
{ {
endpoints.MapControllers(); endpoints.MapControllers();
});{{/useDefaultRouting}} });
{{/useDefaultRouting}}
if (env.IsDevelopment()) if (env.IsDevelopment())
{ {

View File

@ -49,7 +49,7 @@ namespace {{apiPackage}}
public {{operationModifier}} {{#operationResultTask}}{{#operationIsAsync}}async {{/operationIsAsync}}Task<{{/operationResultTask}}IActionResult{{#operationResultTask}}>{{/operationResultTask}} {{operationId}}({{#allParams}}{{>pathParam}}{{>queryParam}}{{>bodyParam}}{{>formParam}}{{>headerParam}}{{^-last}}{{^isCookieParam}}, {{/isCookieParam}}{{/-last}}{{/allParams}}){{^generateBody}};{{/generateBody}} public {{operationModifier}} {{#operationResultTask}}{{#operationIsAsync}}async {{/operationIsAsync}}Task<{{/operationResultTask}}IActionResult{{#operationResultTask}}>{{/operationResultTask}} {{operationId}}({{#allParams}}{{>pathParam}}{{>queryParam}}{{>bodyParam}}{{>formParam}}{{>headerParam}}{{^-last}}{{^isCookieParam}}, {{/isCookieParam}}{{/-last}}{{/allParams}}){{^generateBody}};{{/generateBody}}
{{#generateBody}} {{#generateBody}}
{ {
{{#cookieParams}} {{#cookieParams}}
var {{paramName}} = Request.Cookies["{{paramName}}"]; var {{paramName}} = Request.Cookies["{{paramName}}"];
{{/cookieParams}} {{/cookieParams}}

View File

@ -155,9 +155,9 @@ namespace {{packageName}}
}){{/useSwashbuckle}}; }){{/useSwashbuckle}};
app.UseRouting(); app.UseRouting();
app.UseEndpoints(endpoints => app.UseEndpoints(endpoints =>
{ {
endpoints.MapControllers(); endpoints.MapControllers();
}); });
} }
} }
} }

View File

@ -49,7 +49,7 @@ namespace {{apiPackage}}
public {{operationModifier}} {{#operationResultTask}}{{#operationIsAsync}}async {{/operationIsAsync}}Task<{{/operationResultTask}}IActionResult{{#operationResultTask}}>{{/operationResultTask}} {{operationId}}({{#allParams}}{{>pathParam}}{{>queryParam}}{{>bodyParam}}{{>formParam}}{{>headerParam}}{{^-last}}{{^isCookieParam}}, {{/isCookieParam}}{{/-last}}{{/allParams}}){{^generateBody}};{{/generateBody}} public {{operationModifier}} {{#operationResultTask}}{{#operationIsAsync}}async {{/operationIsAsync}}Task<{{/operationResultTask}}IActionResult{{#operationResultTask}}>{{/operationResultTask}} {{operationId}}({{#allParams}}{{>pathParam}}{{>queryParam}}{{>bodyParam}}{{>formParam}}{{>headerParam}}{{^-last}}{{^isCookieParam}}, {{/isCookieParam}}{{/-last}}{{/allParams}}){{^generateBody}};{{/generateBody}}
{{#generateBody}} {{#generateBody}}
{ {
{{#cookieParams}} {{#cookieParams}}
var {{paramName}} = Request.Cookies["{{paramName}}"]; var {{paramName}} = Request.Cookies["{{paramName}}"];
{{/cookieParams}} {{/cookieParams}}

View File

@ -143,9 +143,9 @@ namespace Org.OpenAPITools
}); });
app.UseRouting(); app.UseRouting();
app.UseEndpoints(endpoints => app.UseEndpoints(endpoints =>
{ {
endpoints.MapControllers(); endpoints.MapControllers();
}); });
} }
} }
} }

View File

@ -143,9 +143,9 @@ namespace Org.OpenAPITools
}); });
app.UseRouting(); app.UseRouting();
app.UseEndpoints(endpoints => app.UseEndpoints(endpoints =>
{ {
endpoints.MapControllers(); endpoints.MapControllers();
}); });
} }
} }
} }

View File

@ -143,9 +143,9 @@ namespace Org.OpenAPITools
}); });
app.UseRouting(); app.UseRouting();
app.UseEndpoints(endpoints => app.UseEndpoints(endpoints =>
{ {
endpoints.MapControllers(); endpoints.MapControllers();
}); });
} }
} }
} }