api-generator-templates/Swift/Methods.swift.twig

20 lines
495 B
Twig

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 %}
}