Extension fixed

This commit is contained in:
Artur 2019-04-12 14:47:01 +03:00
parent 9aad096325
commit 03fba9bde1
1 changed files with 4 additions and 2 deletions

View File

@ -2,14 +2,16 @@ import LeadKit
import RxSwift
import Alamofire
extension {{ networkServiceName }} {
{% set serviceName = concat(networkServiceName, "NetworkService") -%}
extension {{ serviceName }} {
{% for method in methods %}
{%- include 'blocks/method/method-func.twig' with { method: method, isStatic: false } %}
{% endfor %}
}
extension Singleton where Self: {{ networkServiceName }} {
extension Singleton where Self: {{ serviceName }} {
{% for method in methods %}
{%- include 'blocks/method/method-func.twig' with { method: method, isStatic: true } %}