model

package
v0.0.0-...-e082e2d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`

	Updated primitive.DateTime `json:"updated" bson:"updated"`
	Created primitive.DateTime `json:"created" bson:"created"`
	Name    string             `json:"name" bson:"name"`
	Wasm    []byte             `json:"wasm" bson:"wasm"`
}

type Notification

type Notification struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`

	Updated primitive.DateTime `json:"updated" bson:"updated"`
	Created primitive.DateTime `json:"created" bson:"created"`

	Name        string             `json:"name" bson:"name"`
	ConditionId primitive.ObjectID `json:"conditionId" bson:"conditionId"`
	Config      map[string]any     `json:"config" bson:"config"`
}

type Offer

type Offer struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`

	SiteId  string             `json:"siteId" bson:"siteId"`
	Site    string             `json:"site" bson:"site"`
	Updated primitive.DateTime `json:"updated" bson:"updated"`
	Created primitive.DateTime `json:"created" bson:"created"`

	Name           string   `json:"name" bson:"name"`
	Url            string   `json:"url" bson:"url"`
	Area           float32  `json:"area" bson:"area"`
	Rooms          int      `json:"rooms" bson:"rooms"`
	Floor          int      `json:"floor" bson:"floor"`
	BuildingFloors int      `json:"buildingFloors" bson:"buildingFloors"`
	Year           int      `json:"year" bson:"year"`
	Heating        string   `json:"heating" bson:"heating"`
	Market         string   `json:"market" bson:"market"`
	Window         string   `json:"window" bson:"window"`
	Elevator       bool     `json:"elevator" bson:"elevator"`
	Balcony        bool     `json:"balcony" bson:"balcony"`
	Media          []string `json:"media" bson:"media"`

	History []*OfferHistory `json:"history" bson:"history"`
}

type OfferAction

type OfferAction uint32
const (
	OfferActionAdd         OfferAction = 1
	OfferActionUpdate      OfferAction = 2 // Unused
	OfferActionPriceChange OfferAction = 3
	OfferActionSame        OfferAction = 4
)

type OfferHistory

type OfferHistory struct {
	Updated primitive.DateTime `json:"updated" bson:"updated"`
	Price   int                `json:"price" bson:"price"`
}

type SentNotification

type SentNotification struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`

	Updated primitive.DateTime `json:"updated" bson:"updated"`
	Created primitive.DateTime `json:"created" bson:"created"`

	OfferId        primitive.ObjectID `json:"offerId" bson:"offerId"`
	NotificationId primitive.ObjectID `json:"notificationId" bson:"notificationId"`

	Message          string         `json:"message" bson:"message"`
	SentSuccessfully bool           `json:"sentSuccessfully" bson:"sentSuccessfully"`
	SendingStatus    map[string]any `json:"sendingStatus" bson:"sendingStatus"`
}

type WatchUrl

type WatchUrl struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`

	Created primitive.DateTime `json:"created" bson:"created"`
	Updated primitive.DateTime `json:"updated" bson:"updated"`

	Url      string `json:"url" bson:"url"`
	IsList   bool   `json:"isList" bson:"isList"`
	Disabled bool   `json:"disabled" bson:"disabled"`
}

Jump to

Keyboard shortcuts

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