Merge pull request #69 from TouchInstinct/fix/networkExtension
Extension fixed
This commit is contained in:
commit
dc5bdc6b7f
|
|
@ -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 } %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue