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