1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-20 19:52:47 +02:00
echo/recipe/twitter/model/user.go
Vishal Rana f10daac5d6 recipe: twitter like api
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-12-05 23:04:03 -08:00

14 lines
398 B
Go

package model
import "gopkg.in/mgo.v2/bson"
type (
User struct {
ID bson.ObjectId `json:"id" bson:"_id,omitempty"`
Email string `json:"email" bson:"email"`
Password string `json:"password,omitempty" bson:"password"`
Token string `json:"token,omitempty" bson:"-"`
Followers []string `json:"followers,omitempty" bson:"followers,omitempty"`
}
)