You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
339 B

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
}
}