-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change the API response format to improve the response time (#19)
- Loading branch information
1 parent
0161cdf
commit 196c2c9
Showing
47 changed files
with
2,175 additions
and
512 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import Foundation | ||
|
||
// EvaluationDao CURD | ||
protocol EvaluationDao { | ||
func put(userId: String, evaluations: [Evaluation]) throws | ||
func get(userId: String) throws -> [Evaluation] | ||
func deleteAllAndInsert(userId: String, evaluations: [Evaluation]) throws | ||
func deleteAll(userId: String) throws | ||
func deleteByIds(_ ids: [String]) throws | ||
func startTransaction(block: TransactionBlock) throws | ||
} | ||
|
||
typealias TransactionBlock = () throws -> Void |
Oops, something went wrong.