From 0162caddba99ed24361f64b662a5f8893b42adf9 Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Wed, 25 May 2022 13:57:11 +0700 Subject: [PATCH] [Update] add request create/update staff --- struct.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/struct.go b/struct.go index 61eab5b..6ce5c9b 100644 --- a/struct.go +++ b/struct.go @@ -6,12 +6,10 @@ import ( // Staff ... type Staff struct { - ID string `json:"_id"` // ObjectID + Reference string `json:"reference"` // ObjectID Name string `json:"name"` Phone string `json:"phone"` Active bool `json:"active"` - CreatedAt string `json:"createdAt"` // ISOString - UpdatedAt string `json:"updatedAt"` // ISOString IsRoot bool `json:"isRoot"` Permissions []string `json:"permissions"` Source string `json:"source"`