From 1d0fcbef47a29740e610aaf7a144c0e9588682cf Mon Sep 17 00:00:00 2001 From: arnaucode Date: Fri, 28 Jul 2017 21:19:40 +0200 Subject: [PATCH] cluster age --- mongodbModels.go | 8 +++++--- serverRoutes.go | 5 ++++- userOperations.go | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 userOperations.go diff --git a/mongodbModels.go b/mongodbModels.go index d6e6931..c51d165 100644 --- a/mongodbModels.go +++ b/mongodbModels.go @@ -1,9 +1,11 @@ package main type UserModel struct { - ID string `json:"id"` - Age int `json:",string"` - Actions []string + ID string `json:"id"` + Age int `json:",string"` + //age clusters: a<20 (0), 20