-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: error building and added latest code
- Loading branch information
Aarif Sumra
committed
May 25, 2021
1 parent
229d88f
commit 829e519
Showing
38 changed files
with
483 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Entity.swift | ||
// Domain | ||
// | ||
// Created by {{cookiecutter.lead_dev_name}} on {% now 'local' %}. | ||
// Copyright © {% now 'local', '%Y' %} {{cookiecutter.company_name}} All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol Entity { | ||
var id: Int { get } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// UseCase.swift | ||
// Domain | ||
// | ||
// Created by {{cookiecutter.lead_dev_name}} on {% now 'local' %}. | ||
// Copyright © {% now 'local', '%Y' %} {{cookiecutter.company_name}} All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol UseCase { | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
{{cookiecutter.app_name}}/Platform/Network/Endpoints/Endpoints.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// {{cookiecutter.domain_model}}sEndpoint.swift | ||
// Platform | ||
// | ||
// Created by {{cookiecutter.lead_dev_name}} on {% now 'local' %}. | ||
// Copyright © 2021 {{cookiecutter.company_name}} All rights reserved. | ||
// | ||
|
||
import Domain | ||
|
||
enum Endpoints: Endpoint { | ||
case {{cookiecutter.domain_model|lower}}s | ||
|
||
var relativePath: String { | ||
switch self { | ||
case .{{cookiecutter.domain_model|lower}}s: | ||
return "{{cookiecutter.domain_model|lower}}s" | ||
} | ||
} | ||
|
||
var headers: [String : String] { | ||
return [ | ||
"Content-Type": "application/json" | ||
] | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
...cutter.app_name}}/Platform/Network/Endpoints/{{cookiecutter.domain_model}}sEndpoint.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.