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

20 lines
491 B
Twig

import LeadKit
import RxSwift
import Alamofire
{% 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: {{ serviceName }} {
{% for method in methods %}
{%- include 'blocks/method/method-func.twig' with { method: method, isStatic: true } %}
{% endfor %}
}