Documentation
¶
Index ¶
- Variables
- func ImageField(field string) string
- func ReviewField(field string) string
- func TimeSpentField(field string) string
- func TranslationField(lang string, field string) string
- func TranslationSeoField(lang string, field string) string
- type MongoImage
- type MongoPlace
- func (e *MongoPlace) FromEntity(entity *place.Entity) *MongoPlace
- func (e *MongoPlace) FromEntityUpdate(entity *place.Entity) *MongoPlace
- func (e *MongoPlace) ToAdminListEntity() *place.Entity
- func (e *MongoPlace) ToAdminViewEntity() *place.Entity
- func (e *MongoPlace) ToListEntity() *place.Entity
- func (e *MongoPlace) ToViewEntity() *place.Entity
- type MongoRestoration
- type MongoReview
- type MongoSeo
- type MongoTimeSpent
- type MongoTranslation
Constants ¶
This section is empty.
Variables ¶
View Source
var Fields = fields{
UUID: "_id",
FeatureUUIDs: "feature_uuids",
Images: "images",
Translations: "translations",
AverageTimeSpent: "average_time_spent",
Review: "review",
IsActive: "is_active",
IsDeleted: "is_deleted",
IsPayed: "is_payed",
Restorations: "restorations",
UpdatedAt: "updated_at",
CreatedAt: "created_at",
Coordinates: "coordinates",
Type: "type",
}
View Source
var ImageFields = imageFields{
Url: "url",
Order: "order",
}
View Source
var ReviewFields = reviewFields{
Total: "total",
AveragePoint: "average_point",
}
View Source
var SeoFields = seoFields{
Title: "title",
Description: "description",
Keywords: "keywords",
}
View Source
var TimeSpentFields = timeSpentFields{
Min: "min",
Max: "max",
}
View Source
var TranslationFields = translationFields{
Title: "title",
Description: "description",
Slug: "slug",
MarkdownURL: "markdown_url",
Seo: "seo",
}
Functions ¶
func ImageField ¶
func ReviewField ¶
func TimeSpentField ¶
func TranslationField ¶
func TranslationSeoField ¶
Types ¶
type MongoImage ¶
type MongoPlace ¶
type MongoPlace struct { UUID string `bson:"_id,omitempty"` FeatureUUIDs []string `bson:"feature_uuids"` Images []MongoImage `bson:"images"` Translations map[string]MongoTranslation `bson:"translations"` AverageTimeSpent MongoTimeSpent `bson:"average_time_spent"` Review MongoReview `bson:"review"` Restorations []MongoRestoration `bson:"restorations"` Coordinates []float64 `bson:"coordinates"` IsActive bool `bson:"is_active"` IsDeleted bool `bson:"is_deleted"` IsPayed bool `bson:"is_payed"` Type string `bson:"type"` UpdatedAt time.Time `bson:"updated_at"` CreatedAt time.Time `bson:"created_at"` }
func (*MongoPlace) FromEntity ¶
func (e *MongoPlace) FromEntity(entity *place.Entity) *MongoPlace
func (*MongoPlace) FromEntityUpdate ¶
func (e *MongoPlace) FromEntityUpdate(entity *place.Entity) *MongoPlace
func (*MongoPlace) ToAdminListEntity ¶
func (e *MongoPlace) ToAdminListEntity() *place.Entity
func (*MongoPlace) ToAdminViewEntity ¶
func (e *MongoPlace) ToAdminViewEntity() *place.Entity
func (*MongoPlace) ToListEntity ¶
func (e *MongoPlace) ToListEntity() *place.Entity
func (*MongoPlace) ToViewEntity ¶
func (e *MongoPlace) ToViewEntity() *place.Entity
type MongoRestoration ¶
type MongoReview ¶
type MongoTimeSpent ¶
Click to show internal directories.
Click to hide internal directories.