Files
gogame/models/user.go
2019-06-13 22:41:47 +02:00

22 lines
339 B
Go

package models
import "gopkg.in/mgo.v2/bson"
type Resource struct {
Value int64
Max int64
}
type User struct {
Id bson.ObjectId `json:"id" bson:"_id,omitempty"`
Name string
Password string
Email string
Resources struct {
Metal Resource
Crystal Resource
Deuterium Resource
Energy Resource
}
}