aboutsummaryrefslogtreecommitdiff
path: root/src/clj/queue_api/db/core.clj
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2018-02-17 16:03:31 -0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2018-02-17 16:03:31 -0200
commit2198d8990da4535b6d81cf7008b85e5c14c3e0f3 (patch)
tree11a10f78a7b50fead0d66ed757a063b6f1d21e9d /src/clj/queue_api/db/core.clj
parent6f30892a02a3feff164b1c26805cb35a54475726 (diff)
downloadqueue-api-2198d8990da4535b6d81cf7008b85e5c14c3e0f3.tar.gz
queue-api-2198d8990da4535b6d81cf7008b85e5c14c3e0f3.tar.bz2
queue-api-2198d8990da4535b6d81cf7008b85e5c14c3e0f3.zip
Adds service endpoints
Diffstat (limited to 'src/clj/queue_api/db/core.clj')
-rw-r--r--src/clj/queue_api/db/core.clj20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/clj/queue_api/db/core.clj b/src/clj/queue_api/db/core.clj
new file mode 100644
index 0000000..2d32736
--- /dev/null
+++ b/src/clj/queue_api/db/core.clj
@@ -0,0 +1,20 @@
+(ns queue-api.db.core)
+
+
+(defn add-agent [{:keys [id name primary-skillset secondary-skillset]}]
+ (println (str "Dummy " name)))
+
+(defn add-job [{:keys [id type urgent]}]
+ (println (str "Dummy " type)))
+
+(defn request-job [id]
+ {:job_request {:job_id "Dummy" :agent_id "Dummy"}})
+
+(defn get-agent [id]
+ [{:type "reward_question" :jobs 2}
+ {:type "bills_question" :jobs 3}])
+
+(defn get-queue []
+ {:completed ["1" "2" "3"]
+ :in_process["2" "3" "4"]
+ :waiting ["2" "5" "6"]}) \ No newline at end of file