models

package
v0.0.0-...-c596874 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cafe

type Cafe struct {
	Magaza  string `bson:"magaza" json:"magaza"`
	Kat     string `bson:"kat" json:"kat"`
	Telefon string `bson:"telefon" json:"telefon"`
}

Cafe is the structure of the cafe inside a shopping mall

type Shop

type Shop struct {
	Magaza  string `bson:"magaza" json:"magaza"`
	Kat     string `bson:"kat" json:"kat"`
	Telefon string `bson:"telefon" json:"telefon"`
}

Shop is the structure of the shops inside a shopping mall

type ShoppingMall

type ShoppingMall struct {
	ID         bson.ObjectId `bson:"_id" json:"id"`
	Name       string        `bson:"name" json:"name"`
	District   string        `bson:"district" json:"district"`
	City       string        `bson:"city" json:"city"`
	ImageLink  string        `bson:"imageLink" json:"imageLink"`
	DetailPage string        `bson:"detailPage" json:"detailPage"`
	Score      string        `bson:"score" json:"score"`
	ShopList   []Shop        `bson:"shops" json:"shops"`
	CafesList  []Cafe        `bson:"cafes" json:"cafes"`
}

ShoppingMall represents the structure of the shopping mall, we uss bson keyword to tell the mgo driver how to name the properties in mongodb document

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL