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

  1. package models
  2. import "gopkg.in/mgo.v2/bson"
  3. type Resource struct {
  4. Value int64
  5. Max int64
  6. }
  7. type User struct {
  8. Id bson.ObjectId `json:"id" bson:"_id,omitempty"`
  9. Name string
  10. Password string
  11. Email string
  12. Resources struct {
  13. Metal Resource
  14. Crystal Resource
  15. Deuterium Resource
  16. Energy Resource
  17. }
  18. }